S
Sky Warren
Hello All,
I'm using Access 2003 and I'm getting a "Run-time error 13 : Type mismatch"
message from running the following code:
Private Sub Regional_AfterUpdate()
Dim Agent_Name as String
Agent_Name = "John Doe"
DoCmd.OpenReport "Clients", acViewPreview, , , Agent_Name
End Sub
Access is saying the Agent_Name variable in the OpenArgs is not the right
type. How can the OpenArgs be used to pass data to a report?
I'm using Access 2003 and I'm getting a "Run-time error 13 : Type mismatch"
message from running the following code:
Private Sub Regional_AfterUpdate()
Dim Agent_Name as String
Agent_Name = "John Doe"
DoCmd.OpenReport "Clients", acViewPreview, , , Agent_Name
End Sub
Access is saying the Agent_Name variable in the OpenArgs is not the right
type. How can the OpenArgs be used to pass data to a report?