Tuesday, 17 September 2013

DoCmd.RunCommand acCmdRecordsGoToNext failed after save as ACCDE file

DoCmd.RunCommand acCmdRecordsGoToNext failed after save as ACCDE file

i have DoCmd.RunCommand acCmdRecordsGoToNext command that runs after i
called it from another form. everything works totally fine before i save
it as ACCDE file. those DoCmd.RunCommand acCmdRecordsGoToNext wont works
in the ACCDE file.
Public Sub cmdFindRecord_Click()'i make this button click event public so
i can call it from another form
DoCmd.RunCommand acCmdRecordsGoToFirst
End Sub
Forms("frmEditRecord").cmdFindRecord_Click'calling button click event from
another form
I tried to runs the cmdFindRecord_Click() event on its form (without
calling it from another form) and it runs well. It's like the
DoCmd.RunCommand acCmdRecordsGoToNext command on the cmdFindRecord_Click()
cannot be call from another form in ACCDE filetype. is it suppose to be
references issue or what?hope someone help

No comments:

Post a Comment