Why this command is not working anymore?????

M

Marco

Hi. I had this com my form, this command alowed me to open another form into
a specif record.

Sudently it stop working. Now is not opnning the specific record anymore. it
open in blank I think.

DoCmd.OpenForm "38_form_Vistorias_Areas_Detalhes", , ,
"ID_Detalhes_Areas_Vistorias = " & Me!ID_Detalhes_Areas_Vistorias


PLEASE HELP ME.

Regards,
Marco
 
J

John W. Vinson

Hi. I had this com my form, this command alowed me to open another form into
a specif record.

Sudently it stop working. Now is not opnning the specific record anymore. it
open in blank I think.

DoCmd.OpenForm "38_form_Vistorias_Areas_Detalhes", , ,
"ID_Detalhes_Areas_Vistorias = " & Me!ID_Detalhes_Areas_Vistorias

What's actually in ID_Detalhes_Areas_Vistorias? Does it correspond to an
existing record in the form's recordsource?

John W. Vinson [MVP]
 
M

Marco

Hi. Yes it does.


In the first form I have a record, if I click twice on it will open a new
form with the record details. So I use the ID_Detalhes_Areas_Vistorias to
match the records on both forms.

Thanks,
Marco
 
Top