Hello All,
I am unable to get my VBA code to show all the records and allow me to
view the filtered responses from user input, once my cmd_click() event
fires.
The form displays the 19 fields from database in an AD HOC form, using a
continuous form format so it allows the user to select what fields they want
to filter.
To aid the user, I have two unbound combo boxes and four unbound text
boxes for user input:
Program name (Combo)
Source (Text)
Liaison (Text)
Status (Combo)
Due Date - From (Text)
Due Date - To (Text)
The filter works great. However, it only displays the FIRST record on the
report when I fire the command button to print preview as follows.
I realized that I needed to tell my report what to look for in the record source but I am getting sooo many errors on my SQL WHERE clause of my report table. What am I missing?
I am unable to get my VBA code to show all the records and allow me to
view the filtered responses from user input, once my cmd_click() event
fires.
The form displays the 19 fields from database in an AD HOC form, using a
continuous form format so it allows the user to select what fields they want
to filter.
To aid the user, I have two unbound combo boxes and four unbound text
boxes for user input:
Program name (Combo)
Source (Text)
Liaison (Text)
Status (Combo)
Due Date - From (Text)
Due Date - To (Text)
The filter works great. However, it only displays the FIRST record on the
report when I fire the command button to print preview as follows.
I realized that I needed to tell my report what to look for in the record source but I am getting sooo many errors on my SQL WHERE clause of my report table. What am I missing?
Code:
SELECT * FROM tblOpenActionItems WHERE [Liaison_Contact_Information] = '"& Me.txtFilterLiaison &"' AND [Source] Like '"*& Me.txtFilterSource &“’ AND [Program] Like '"* & Me.cboFilterProgram & “’ AND [Status] Like ‘”* & Me.cboFilterStatus & “’ AND [Due_Date]>='"&Format(Me.txtStartFilterDate, conJetDate )& “’ AND [Due_Date] < '"& Format(Me.txtEndFilterDate + 1, conJetDate) “’ AND [Program] Like '"* & Me.cboFilterProgram & “’
Comment