Me again

A

alvin Kuiper

Hi Barry
i was wrong i can't get the value from my form into the canlendar form
i have try
Private Sub slutdato_Click()
MsgBox (SlutDato)
DoCmd.OpenForm "kalender_slut", acNormal, OpenArgs:=SlutDato
End Sub

In the msgbox i get the right date but not in my kalender_slut form

Alvin
 
B

Barry Gilbert

Your OpenArgs needs to pass the literal name of the control, not its value.
Try:

DoCmd.OpenForm "kalender_slut", acNormal, OpenArgs:="SlutDato"

If it's still not working, you can send me a copy of your mdb to
blgilbert at gmail dot com

Barry
 
A

alvin Kuiper

thanks barry
now i understand and yes its working.

Alvin


"Barry Gilbert" skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top