puakenikeni
Registered User.
- Local time
- Today, 02:01
- Joined
- Jun 24, 2008
- Messages
- 25
I'm trying to create a form and a its child subform so that when you select a value in the combo boxes in the main form, the records corresponding to the choices in the combo box will show in the subform. However, I'm running into problems with the first combo box. If I make any choices from the combo box, I have this error message:
This is what I have in my code for the "After update" event of the combo box:
Did I write the code incorrectly? Am I referring to the field incorrectly?
Code:
Run-time error '3070':
The Microsoft Jet database engine does not recognize 'WARS' as a valid field name or expression
This is what I have in my code for the "After update" event of the combo box:
Code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ProgramName] = " & Me.cboProgramName_tab2
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.Repaint
Me.subMaster.Requery
Did I write the code incorrectly? Am I referring to the field incorrectly?