OpenArgs or somethin

cos

Registered User.
Local time
Today, 17:49
Joined
Jul 13, 2012
Messages
81
Has anyone got any ideas on how you can carry previous information onto an other form? I was told that OpenArgs may help, but i have no idea on how to use it..

for instance, i have information which i fill in one for, then when i click on the Next button, another form opens with the previous records still in place, as in the same ID is present for further editing...

any thoughts?
 
I hope on the click of the button you use a DoCmd.OpenForm.. the open args is the very last argument in the DeCmd.OpnForm method.. so something like..
Code:
Private Sub yourButtonName_OnClick()
    DoCmd.OpenForm FormName:="[COLOR=Blue]theFormYouAreTryingToOpen[/COLOR]", _
                  OpenArgs:="[COLOR=Blue]whatever you want to send[/COLOR]","[COLOR=Blue]they can be as many as you like[/COLOR]"
End Sub
while accessing, you can use Me.OpenArgs..
 
You can pass only one string, so the comma pr2 wrote at the end will fail. If you want to pass multiple values then you have to put a delimeter to separate each part within that one string, then split it at the destination.
 

Users who are viewing this thread

Back
Top Bottom