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 November 4th, 2003, 06:46 AM
mikazza mikazza is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 8 mikazza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 48 m 32 sec
Reputation Power: 0
Angry Pleezz Help! Run-time error when copying between forms

Please help a access beginner!!

I have 2 forms, the form1 has an staff_id field on it and a customer id. I enter the staff_id then the customer id, then press the button I made which brings up the new form2 which has staff_id, customer id and customer name on it. They are both bound to seperate tables, table1 with staff_id and customer id and table2 with staff_id, customer id and customer name.

I want to be able to type the customer id and staff_id on form1, press the button to bring up form2 matching the customer_id, and have access assign the empl_no. to the staff_id field on this table.

The button simply displays form2 matching the customer no., this part works. Its when I tried to make make the staff_id automatically appear on form2 I get the Run-time error '424' Object required.

I have the following on form2 to try and copy the staff_id

Private Sub Form_Load()
form2.staff_id = form1.staff_id
End Sub

Can anyone help? Pleeese?

Reply With Quote
  #2  
Old November 4th, 2003, 10:00 AM
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: 12
Make sure the textboxs referencing staffID really exist with those names on both forms.

It is also good practice to name Text Boxes "txtStaff_ID"

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Pleezz Help! Run-time error when copying between forms


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 2 hosted by Hostway