J
JimH
I am trying to get a record using a combo Box, but i keep getting Error 13.
Here is the code:
Private Sub Text105_AfterUpdate()
' Find the record that matches Text105.
Dim rms As Object
' On Error GoTo HandleErr
Set rms = Me.Recordset.Clone
rms.FindFirst "[MODEL NUMBER] = " & Str(Me![Text105])
Me.Bookmark = rms.Bookmark
' Set the focus to the last record in the Billing Appointment table.
Forms![PARTS DB]![MODEL NUMBER].SetFocus
DoCmd.GoToControl "STOCK SUB FORM"
DoCmd.GoToRecord , , acLast
My "MODEL NUMBER" and Text105 are both text.
I have read the help file, but I don't know where the mismatch occurs, and
why.
Access help shows " rms.FindFirst "[MODEL NUMBER] = " & Str(Me![Text105])"
as the problem.
I ill appreciate any help.
Jim
Here is the code:
Private Sub Text105_AfterUpdate()
' Find the record that matches Text105.
Dim rms As Object
' On Error GoTo HandleErr
Set rms = Me.Recordset.Clone
rms.FindFirst "[MODEL NUMBER] = " & Str(Me![Text105])
Me.Bookmark = rms.Bookmark
' Set the focus to the last record in the Billing Appointment table.
Forms![PARTS DB]![MODEL NUMBER].SetFocus
DoCmd.GoToControl "STOCK SUB FORM"
DoCmd.GoToRecord , , acLast
My "MODEL NUMBER" and Text105 are both text.
I have read the help file, but I don't know where the mismatch occurs, and
why.
Access help shows " rms.FindFirst "[MODEL NUMBER] = " & Str(Me![Text105])"
as the problem.
I ill appreciate any help.
Jim