Hi, i have a dataenvironment with a command called mainrecord, this has the following sql code in it:
SELECT * FROM mainrecord WHERE Patno1 = ?
the name of the table mainrecord and field Patno1 are correct, but when i click on the parameters tab i get the following error:
"unable to determine the parameter information for the parameters"
and then when i run code in a buttom on a form to display a datareport which uses the command mainrecord it just produces an error and says "type mismatch". the code behind the button is as follows:
Private Sub cmdView_Click()
DataEnvironment1.mainrecord viewpatientrecord.patno1.Text
rptMainrecord.Show
End Sub
any ideas about what's going wrong? i'm trying to get the code to print out a datareport of the record which is currently being displayed in the form.
thanks!
SELECT * FROM mainrecord WHERE Patno1 = ?
the name of the table mainrecord and field Patno1 are correct, but when i click on the parameters tab i get the following error:
"unable to determine the parameter information for the parameters"
and then when i run code in a buttom on a form to display a datareport which uses the command mainrecord it just produces an error and says "type mismatch". the code behind the button is as follows:
Private Sub cmdView_Click()
DataEnvironment1.mainrecord viewpatientrecord.patno1.Text
rptMainrecord.Show
End Sub
any ideas about what's going wrong? i'm trying to get the code to print out a datareport of the record which is currently being displayed in the form.
thanks!