Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 2nd, 2003, 07:00 AM
Rob Eccleston Rob Eccleston is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Solihull, UK
Posts: 2 Rob Eccleston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Data Access Pages: manipulate objects in window 2 from script in window 1.

I'm trying to construct an on-line request processing system using Access 2000 Data Access Pages. I want to open a new window, using window.open, and write a value to a textbox on the new window, from script in the original window.

I've been trying to adapt some code from a MS Technical document. It looks like this:

Dim newWin
Set newWin=window.open("FileName",null,"center:yes")

So far so good. That works. The new page opens. Then I hit problems. The sample code I'm copying is designed to set the sort order of the data set. It reads as follows:

Dim myDSC
Set myDCS=newWin.document.all.MSODSC
myDSC.defaultRecordset.sort="ShipDate"

However, I dont want to sort the recordset, I want to put a value into a textbox called txtDiscountNumber which is on the new document. How the hell do I address the text objext to write to its .value property? I've been trying different variations for days now and I'm loosing the will to live.

Please, can anyone help?

Reply With Quote
  #2  
Old October 3rd, 2003, 12:18 PM
don_sparko's Avatar
don_sparko don_sparko is offline
Digitally Challenged
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 280 don_sparko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 6
here is one idea, i did something similar to this.
have a dynamic hidden form variable created in your loop to output your record. then have a function that opens the new window with a few paramaters like the ID of the specific item you want to load in the new window. then you can use the window.opener.document.formname.hiddenvariablename.value and put that in a text box or something. let me know if this helps or if you need more info.
__________________
My brain cells are like a storm trooper's armor: useless

Reply With Quote
  #3  
Old October 7th, 2003, 10:53 AM
Rob Eccleston Rob Eccleston is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Solihull, UK
Posts: 2 Rob Eccleston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Don.

Thanks for your response.

I think I understand where you're coming from but I don't believe it's what I'm looking for.

What I have is a Data Access Page attached to one Access table. The page is going to be used to enter a request for work from another department. That record, when created, picks up a request number ( an AutoNumber field). When the details are completed, I want the user to open a second Data Access Page. I want to write the request number to the second Data Access Page , which is attached to another Access table, and use the common number from both windows to connect the records in each table.

Can that be achieved with what you suggest?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Data Access Pages: manipulate objects in window 2 from script in window 1.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT