Hi,
I am trying to go to a specific record on a form. This is de code I use as event procedure of a button:
So, the values of 9 fields (unbound text-boxes: ZEU_psu_nr, ZEU_pdg_nr, etc) determine to which record I would like to go.
When I run this code, I get the message "Run-time error 13. Type mismatch".
I hope somebody can help me with this!
Thanks,
Tep
I am trying to go to a specific record on a form. This is de code I use as event procedure of a button:
Code:
DoCmd.GoToRecord acActiveDataObject, , acGoTo, "EU_psu_nr = " & Me.ZEU_psu_nr And "EU_pdg_nr = " & Me.ZEU_pdg_nr And "EU_psg_nr = " & Me.ZEU_psg_nr And "EU_pro_nr = " & Me.ZEU_pro_nr And "psu_nr = " & Me.Zpsu_nr And "pdg_nr = " & Me.Zpdg_nr And "psg_nr = " & Me.Zpsg_nr And "pro_nr = " & Me.Zpro_nr And "pro_nr_hoedanigheid = " & Me.Zpro_nr_hoedanigheid
When I run this code, I get the message "Run-time error 13. Type mismatch".
I hope somebody can help me with this!
Thanks,
Tep