Hi Guys,
This time I (a very fresh newbie) really got my knickers in a twist.
When running a report with data from a form;
Private Sub Print_Docket_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Docket"
strWhere = "[ID]=" & Me!ID
DoCmd.OpenReport strDocName, acPreview, , strWhere
End Sub
My report named Docket opens and in Field9 and Field10 I get numbers returned instead of the contents of the FormField. The problem is probably that I have selected from a listbox with data in another table.
From here on I sail really blind and would appreciate it if any of you Masters could get my knickers out of the twist.. and help me with a cure for this problem.
Thanks,
Reece
Windows 7
Access 2007
This time I (a very fresh newbie) really got my knickers in a twist.
When running a report with data from a form;
Private Sub Print_Docket_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Docket"
strWhere = "[ID]=" & Me!ID
DoCmd.OpenReport strDocName, acPreview, , strWhere
End Sub
My report named Docket opens and in Field9 and Field10 I get numbers returned instead of the contents of the FormField. The problem is probably that I have selected from a listbox with data in another table.
From here on I sail really blind and would appreciate it if any of you Masters could get my knickers out of the twist.. and help me with a cure for this problem.
Thanks,
Reece
Windows 7
Access 2007
Attachments
Last edited: