Hi,
I'm working with Acces2000 under W2000.
I'm using these sentences:
Dim Camp As Variant
Dim stDocName As String
Dim stCriteri As String
Camp = "3"
stDocName = "Form Reaccions"
stCriteri = "Reference = '" & Camp & "'
DoCmd.OpenForm stDocName, , , stCriteri
But when I execute the action, msaccess generate a window to input the
"Reference" valor.
I tried three ways:
1.- stCriteri = "Reference = '" & Camp & "'
2.- stCriteri = "Reference = " & Camp & "
3.- Const cQuote = """"
stCriteri = "Reference = " & cQuote & Camp & cQuote
But with all them I have the same result, the window demands me the
"Reference" valor. Can somebody help me?
Thanks, David.