> I had never worked with ADO enviornment in access world.
>
[quoted text clipped - 16 lines]
> now i used like rs.movefirst, rs.movelast not working varous msgs
> appearing on various buttons actions
First, since you are referencing an mdb above, you should know that ADO
code cannot interact directly with an mdb form's recordset, just with the
underlying data.
Second, if you are using Access standalone, or on the front and back,
there is no need for the detailed connection string; use
CurrentProject.Connection as the Connection object:
Dim cnxn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cnxn = CurrentProject.Connection
Set rs = New ADODB.Recordset
With rs
.Source = "select * from tblclaims"
.Open , cnxn, adOpenForwardOnly, adLockReadOnly, adCmdText
Do While Not .EOF
' Stuff
.MoveNext
Loop
.Close
End With
Set rs = Nothing
Darryl Kerkeslager
SalimShahzad - 19 Feb 2005 07:05 GMT
sir thanks for ur reply...
wants to know the complete form will be depentent on ADo so how we will
do that...
still things r nt clear can more clarify ...say there r text boxes,
combo boxes values will be appearing there..then action buttons
first,last, next,...action has not problem to write codes...
the way i was doing like vb was wrong...can u put some highlight thanks
regards,
shahzad