You might want to try to stick single quotes (') around your string.
Ex: sql = "Select * from table1 where campo1 = '?'"
-Jeff
-----Original Message-----
From: DSII-Area_Académica/ César Salas Arbaiza
[mailto:csalasa@e...]
Sent: Thursday, January 25, 2001 12:33 PM
To: professional vb
Subject: [pro_vb] Problems with datareport!!!!
How can i do reports in Vbasic??????, I use Dataenviroment+Datareport but i
have problems with parameter.
dim sql as string
sql="SELECT * FROM table1 WHERE campo1=?"
'the ? is the parameter or range