Here is the code that I tried to work from the report code. This works to until it gets to the where clause on the SQL statement. Then is puts that the job numbers as if it should be a field name not a text. For example I need the job number to be "199049C002". It is pulling in 199049C002 but not as a string
Private Sub Report_Open(Cancel As Integer
'Set up the SQL statement to filter the repor
Dim active As Strin
Dim job As Strin
Dim strSQL As Strin
Dim ProjectList As Objec
Me!ProjectList.Enabled = Tru
job = Left(ProjectList, 10
' active = "wlbjobnum = forms![frmTasks]!Left(ProjectList, 10)
strSQL =
"SELECT ProjectSetup.WLBJobNum, ProjectSetup.DateCreated, ProjectSetup.PM, ProjectSetup.ProjectName, ProjectSetup.WorkPerformed, OpenTask.TaskNo, OpenTask.Description " &
"FROM ProjectSetup INNER JOIN OpenTask ON ProjectSetup.WLBJobNum = OpenTask.ProjectNo Where WLBJobNum = job;
Me.RecordSource = strSQ
End Su
******************************************************************
I have also tried to use the following code on the form portion. (When I use this code the code on the report is commented out
active = "wlbjobnum = forms![frmTasks]!ProjectList
job = Left(active, 10
'Open the report for the selected project ... I hop
DoCmd.OpenReport "rptopentasks", acViewPreview, , jo
DoCmd.Maximiz
In this case I am pulling from an unbound listbox with the following row source
SELECT [qryProjectSetup].[WLBJobNum], [qryProjectSetup].[ProjectName] FROM qryProjectSetup ORDER BY [wlbjobnum];
Do I need to truncate the information that is coming in from the listbox or does the code automatically know what I am looking for
I know this should be easy but I have myself all confused. Any help you can give will be greatly appreciated.