Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

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 ASP Free Forums Sponsor:
  #1  
Old March 2nd, 2004, 09:05 PM
musicfanz musicfanz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 musicfanz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Any way to pass a form as an argument to a function??

Hi all,

Is there any way to pass a form as an argument to a function call??

Pls help. Thanks.

Regards,
Tracy

Reply With Quote
  #2  
Old March 2nd, 2004, 09:09 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
Why?

S-

Reply With Quote
  #3  
Old March 2nd, 2004, 09:38 PM
musicfanz musicfanz is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 64 musicfanz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Reason why form is needed as an argument

This is done with regards to the prev prob that i posted here abt having records overwritten in a table and yet is correct in another table.

I intend to clear all the fields on the form "Form1 sub1" except the fields - "PacRef", "ItemNo", "PartNo" on the 2nd attempt to open this form to enter in the 2nd item. The remaining fields will be entered by the user on the details of the 2nd item.

A form has to be passed to the function as an argument because what i'm thinking is to compare the entries in this form and the entry that was previously updated of the 1st item (if any) in the table "bad_parts_return".

If this particular Ref no has no item assigned to it yet, then the form "Form1 sub1" will be opened as usual with the "PacRef", "ItemNo" and "PartNo" passed from the mainform and the subform. If there is at least 1 part being assigned previously, then upon the 2nd attempt to open the form "Form1 sub1", the values of the 3 fields are still passed from the 2 forms but the remaining fields in "Form1 sub1" should be blank for the user to enter data instead of having the previous details of the 1st item.

I'm not sure if i'm making sense here...but that's the only way i can think of topossibly solve the problem of overwritten of data in 1 table.

Another solution that i'm thinking of initially is the way i set he criteria to open the form "Form1 sub1". Wat I had planned to do, was to open the form only when the "PacRef" and "PartNo" of the mainform and subform matched. But I couldn't find a way to multiple criteria for OpenForm.

Any idea what i'm talking abt here?? Probably it'll make more sense when u look at my DB.

Thanks for ur time.

Rgds,
Tracy

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Any way to pass a form as an argument to a function??


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 5 hosted by Hostway
Stay green...Green IT