G
Guest
I have a mainform that has a combo box control: Combo65. There is a multi
tab subform that reflects the records that are linked to what is selected in
Combo65. I previously had a control that enabled users to "scroll" through
the available "ProjectName" field's records with Previous Record and Next
Record command buttons. That worked successfully, but as the ProjectName
records became abundant, I decided to change it to a drop-down list to make
that process faster/easier.
The AfterUpdate event for Combo65 is as follows:
Private Sub Combo65_AfterUpdate()
Me.RecordsetClone.FindFirst "ProjectName = '" & Combo65 & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
Now when a ProjectName is selected from the drop-down, I get the following
error:
Run-time error '3077':
Syntax error (missing operator) in expression.
When I Debug, it highlights the second line: MeRecordsetClone.FindFirst....
Not being a VB expert, I am unable to identify why this doesn't work. Can
anyone help? Any feedback is greatly appreciated!
tab subform that reflects the records that are linked to what is selected in
Combo65. I previously had a control that enabled users to "scroll" through
the available "ProjectName" field's records with Previous Record and Next
Record command buttons. That worked successfully, but as the ProjectName
records became abundant, I decided to change it to a drop-down list to make
that process faster/easier.
The AfterUpdate event for Combo65 is as follows:
Private Sub Combo65_AfterUpdate()
Me.RecordsetClone.FindFirst "ProjectName = '" & Combo65 & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
Now when a ProjectName is selected from the drop-down, I get the following
error:
Run-time error '3077':
Syntax error (missing operator) in expression.
When I Debug, it highlights the second line: MeRecordsetClone.FindFirst....
Not being a VB expert, I am unable to identify why this doesn't work. Can
anyone help? Any feedback is greatly appreciated!