M
Miguel
I am trying to assign a recordset in Access 2000 to the
current form:
Private Sub Form_Load()
General.InitConnect
strsql = "select * from contractor where
contactfirstname='Miguel'"
Dim rs As Recordset
Set rs = cnn.OpenRecordset(strsql, dbOpenDynaset, 0,
dbOptimistic)
Set Me.Recordset = rs
End Sub
Every time this runs it causes a fatal error.
What's wrong. How do I assign the recordset to fields so
that I can see the value. Can I enter in the control source
Me.Recordset.Fields("ContactFirstName").Value for any
given text box.
Really I would like to perform a full text query using the
contains clause or a stored procedure on SQL Server and
return all the results to a form in a datasheet view. Is
this possible?
I was thinking I could just find a grid control that
supports the adodb recordset natively.
Thanks,
Miguel
current form:
Private Sub Form_Load()
General.InitConnect
strsql = "select * from contractor where
contactfirstname='Miguel'"
Dim rs As Recordset
Set rs = cnn.OpenRecordset(strsql, dbOpenDynaset, 0,
dbOptimistic)
Set Me.Recordset = rs
End Sub
Every time this runs it causes a fatal error.
What's wrong. How do I assign the recordset to fields so
that I can see the value. Can I enter in the control source
Me.Recordset.Fields("ContactFirstName").Value for any
given text box.
Really I would like to perform a full text query using the
contains clause or a stored procedure on SQL Server and
return all the results to a form in a datasheet view. Is
this possible?
I was thinking I could just find a grid control that
supports the adodb recordset natively.
Thanks,
Miguel