Pass value into new PopUp Form (OpenArgs?)

terbs

Registered User.
Local time
Tomorrow, 10:40
Joined
May 15, 2007
Messages
38
Ive been trawling the forums looking for what I think should be a basic problem.

All I need to do is pass a value into a textbox of a new form on DoCmd.OpenForm.

Should I be using OpenArgs for this? I have tried but everytime the textbox has no value assigned to it.

DoCmd.OpenForm "FRMSalesSub", , , , , , "txtOrderID = 253094" ??
 
You could use OpenArgs, but this would be simpler:

DoCmd.OpenForm "FRMSalesSub"
Forms!FRMSalesSub.txtOrderID = 253094
 
lol... Thanks pbaldy, I always frustrate myself over these stupid little problems.
 

Users who are viewing this thread

Back
Top Bottom