need help in writing Docmd

lamha

Registered User.
Local time
Today, 22:10
Joined
Jun 21, 2000
Messages
76
I have a command button on a form that has 2 subforms. What I need it to do is to load frmData (but not visible)where its Item_Skey = subform1.Item_Skey, Item_State = mainform.Item_State, and Reading_Type = subform2.Reading_Type. Then unload frmData and show frmGraph (OR show Graph then unload frmData???).
Thanks for any help in advance.
 
did you try an if statement...
if item_skey = subform.item_skey then
docmd.open acform,("nameofform")
docmd.close acform,("nameofforme")
endif
 

Users who are viewing this thread

Back
Top Bottom