passing a value between forms

darcy

darcy
Local time
Tomorrow, 01:37
Joined
Aug 9, 2004
Messages
9
F_addrecord has a certian item_code which i want to pass to F_colours , to assign colours and sizes to it.

Can anyone help me figure out how to just click on the link to F_Colours and have the item_code that it passes to.


thanks
 
have a search on OpenArgs either on the forum or in the access help....

This is the way to pass stuff from one form to another.

Regards & GL
 
to use openargs on form1 you should put:

Code:
DoCmd.OpenForm "formname" , , , , acFormAdd , acDialog , textboxname

then on the onOpen event of Form2 put the following:

Code:
if me.openargs <> "" then
me.textboxname = me.openargs
end if
 
Last edited:

Users who are viewing this thread

Back
Top Bottom