Hey all! OK, I have been tasked to get something to work TODAY so the company can show it to the President of the company tomorrow morning...nothing like pressure huh? Here's the scenerio...
I have a form and a subform. The form contains Retailer info (address and such), Vendor info, Week Beginning, Week Ending, and a primary key.
The subform has the following fields, Retailer, Vendor, MSRP, Net Cost, Available, etc...They are linked by Retailer and Vendor, which works great.
THE PROBLEM---
Say the user puts in the following data:
FORM:
Retailer: CompUSA
Vendor: Belkin
Week Beginning: 01/01/2004
Week Ending: 01/08/2004
Subform:
(Retailer and Vendor are hidden and autopopulate)
MSRP: Net Cost: Available: etc....
$50.00 $25.00 250
This data may be EXACTLY the same for Week2 (say 1/8/2004 to 1/15/2004) or just the availablilty may change. There could be up to 25-30 records in the subform and the user DOES NOT want to retype this data every week. So I set up a macro which I thought would work and attached it to a button labeled "Copy data to new record" Here is the macro...
GotoControl cboCompany (First tab on the form)
RunCommand SelectRecord (Selects the entire Rcd)
RunCommand Copy (Copies the entire record)
GotoRecord New (New record on Form)
GotoControl cboCompany (Sets the focus again)
RunCommand PasteAppend
Now, all data copies over to a new record at the form level perfectly, it creates a new record and puts all the data where I want it, but it never writes back to the table! What am I missing??? Hopefully it is something very simple, I just cant figure it out!!
HELP! Thanks!
I have a form and a subform. The form contains Retailer info (address and such), Vendor info, Week Beginning, Week Ending, and a primary key.
The subform has the following fields, Retailer, Vendor, MSRP, Net Cost, Available, etc...They are linked by Retailer and Vendor, which works great.
THE PROBLEM---
Say the user puts in the following data:
FORM:
Retailer: CompUSA
Vendor: Belkin
Week Beginning: 01/01/2004
Week Ending: 01/08/2004
Subform:
(Retailer and Vendor are hidden and autopopulate)
MSRP: Net Cost: Available: etc....
$50.00 $25.00 250
This data may be EXACTLY the same for Week2 (say 1/8/2004 to 1/15/2004) or just the availablilty may change. There could be up to 25-30 records in the subform and the user DOES NOT want to retype this data every week. So I set up a macro which I thought would work and attached it to a button labeled "Copy data to new record" Here is the macro...
GotoControl cboCompany (First tab on the form)
RunCommand SelectRecord (Selects the entire Rcd)
RunCommand Copy (Copies the entire record)
GotoRecord New (New record on Form)
GotoControl cboCompany (Sets the focus again)
RunCommand PasteAppend
Now, all data copies over to a new record at the form level perfectly, it creates a new record and puts all the data where I want it, but it never writes back to the table! What am I missing??? Hopefully it is something very simple, I just cant figure it out!!
HELP! Thanks!