mfaqueiroz
Registered User.
- Local time
- Today, 09:22
- Joined
- Sep 30, 2015
- Messages
- 125
Hello,
I doing one form that shows all the machine that don't work since a certain date. The user choose trought one combo box the month and the year and after click int he button "update table", after that i want to show in a list the filter table.
As the following image.

So i have write the code:
but isn't working, do you know where i'm falling?
thanks
I doing one form that shows all the machine that don't work since a certain date. The user choose trought one combo box the month and the year and after click int he button "update table", after that i want to show in a list the filter table.
As the following image.

So i have write the code:
PHP:
Private Sub LoadTable_Click()
DoCmd.SetWarnings False
Dim strsql As String
Month11 = Me.Month1
Year11 = Me.Year1
strsql = "SELECT * FROM Historic WHERE year([Date])< '& year11 &' or (year(Date))='&year11&' and month(Date)< '&Month11&' );"
Me!List.RowSource = strsql
Me.Refresh
End Sub
but isn't working, do you know where i'm falling?
thanks