I am getting an error
Run-time error 3075
Syntax error (missing operator) in query expression
'[Menu_Toast_Name] = 'Beef's Food' AND [Brand] = 'Beef O Bradys".
from this part of code
Private Sub casc_cmbo_FSC_MENU_AfterUpdate()
Dim myCascMenu As String
myCascMenu = "Select * from tbl_FSC_ITEM_SETUP where [Menu_Toast_Name] = '" & Me.casc_cmbo_FSC_Menu & "' AND [Brand] = '" & Me.casc_cmbo_FSC_BRAND & "'"
Me.subfrm_FSC_ITEM_SETUP.Form.RecordSource = myCascMenu
Me.subfrm_FSC_ITEM_SETUP.Form.Requery
End Sub
The weird thing is it was working until I added more data to the main table. The error only shows when the new data is there. If I remove it, I don't get the error anymore.