Hi guys,
I am currently doing this loaning system for a school, using microsoft access. I had this problem with a filter code. When I click it, it can't run there is a runtime error '3079'.
- Private Sub Command82_Click()
-
If IsNull(Me.Text78) Then
-
Me.FilterOn = False
-
Else
-
Me.Filter = "DATEOFLOAN = """ & Me.Text78 & """"
-
Me.FilterOn = True
-
MsgBox "Filter applied"
-
End If
-
End Sub
The DATEOFLOAN is a field where user will loan stuff and the date will be recorded. the text78 will be the place where I select the date to filter.
Please help.
I got any coding also which can't work but revolve around the same thing. Because previously my DATEOFLOAN field is actually 'DATE OF LOAN' with spaces in between so I use this code.
- Private Sub Command82_Click()
-
If IsNull(Me.Text78) Then
-
Me.FilterOn = False
-
Else
-
Me.Filter = "DATE_OF_LOAN = """ & Me.Text78 & """"
-
Me.FilterOn = True
-
MsgBox "Filter applied"
-
End If
-
End Sub
The program can't seems to recognize my DATE OF LOAN same for (DATE_OF_LOAN), 'DATE_OF_LOAN', Please help.
I read VBA books for dummies(Basics) spend around 10-20 hours online searching but I can not find a link of a single resources that explain to me how to use the colon and semi colon or the """ & Me.Text78 & """. How is the & sign needed.
I really want to learn how these operator work. So if you guys can point me to the right resources I would really appriciated it.