J
Jeff
I want to set the recordsource in the on open event of my form. I am having
trouble with the code,
Dim str_sql As String
Dim IntType As String
IntType = "d"
str_sql = "SELECT
DateAdd(IntType,-Weekday([meetingdate]),[meetingdate])+1
AS WeekOf, tbl_ReportTempData.employeeID FROM tbl_ReportTempData GROUP BY
DateAdd(IntType,-Weekday([meetingdate]),[meetingdate])+1,
tbl_ReportTempData.starttime, tbl_ReportTempData.employeeID ORDER BY
tbl_ReportTempData.starttime;"
Me.RecordSource = str_sql
When I open the form I am being promped for the "IntType". Cant figure this
one out!
Probably something simple. Any help is appreciated.
trouble with the code,
Dim str_sql As String
Dim IntType As String
IntType = "d"
str_sql = "SELECT
DateAdd(IntType,-Weekday([meetingdate]),[meetingdate])+1
AS WeekOf, tbl_ReportTempData.employeeID FROM tbl_ReportTempData GROUP BY
DateAdd(IntType,-Weekday([meetingdate]),[meetingdate])+1,
tbl_ReportTempData.starttime, tbl_ReportTempData.employeeID ORDER BY
tbl_ReportTempData.starttime;"
Me.RecordSource = str_sql
When I open the form I am being promped for the "IntType". Cant figure this
one out!
Probably something simple. Any help is appreciated.