Gotta field in a form called txtWorkPack with a default value of ="*"
gotta report that takes a big sql string that includes txtWorkPack thus
str3 = Forms![NP_Work_Pack_Filter].[txtWorkPack ]
then:
SQL = "SELECT work_tasks.Work_Task_No,
"note from luigi "heavily edited"
& "WHERE asset_category.Master_Cat " & str12 & "" _
& "AND work_tasks.Work_Pack_No = " & str3 & "" _
& "AND work_tasks.Reported_Date " & strDate2 & "" _
& "AND locality.Descript " & str4 & ""
Me.RecordSource = SQL
Everything works fine and dandy when I overwrite the default value of ="*" with a work pack number but I want the default wild card to pass every work pack. But keep getting pesky syntax error.
Using Access 2000
Can post a file if ya want!
Any suggestions??
Ta Luigi
gotta report that takes a big sql string that includes txtWorkPack thus
str3 = Forms![NP_Work_Pack_Filter].[txtWorkPack ]
then:
SQL = "SELECT work_tasks.Work_Task_No,
"note from luigi "heavily edited"
& "WHERE asset_category.Master_Cat " & str12 & "" _
& "AND work_tasks.Work_Pack_No = " & str3 & "" _
& "AND work_tasks.Reported_Date " & strDate2 & "" _
& "AND locality.Descript " & str4 & ""
Me.RecordSource = SQL
Everything works fine and dandy when I overwrite the default value of ="*" with a work pack number but I want the default wild card to pass every work pack. But keep getting pesky syntax error.
Using Access 2000
Can post a file if ya want!
Any suggestions??
Ta Luigi