Error 2162

A

Alain

Hi to all,
I am getting this error 2162 A macro set to one of the current field's
properties failed because of an error in a FindRecord action argument
Can anyone explain to me what this means, I have look at the help file and
follow their example but cannot figure it out.

I also tried different ways of the findwhat argument but no success

Private Sub Combo9_AfterUpdate()
Dim strCity As String
strCity = Me.Combo9.Value
DoCmd.FindRecord strCity, acEntire, False, acSearchAll, , , True

(other tries)
DoCmd.FindRecord "& strCity &",.......
DoCmd.FindRecord "' & strCity & '",.......
DoCmd.FindRecord Me.Combo9,.......
End Sub

Thanks

Alain
 

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

Similar Threads


Top