Hi all,
Below is the code which I use to retrieve data from a different Database. I want to put data in a Continuous Form. There is no problem retrieving data but the Continuous From does not go to the next Record Selector.
I have tried commands below without success:
DoCmd.RunCommand acCmdInsertRows
DoCmd.GoToRecord , , acNewRec
I do not have any error.
Any help will be appreciated.
Thanks.
Below is the code which I use to retrieve data from a different Database. I want to put data in a Continuous Form. There is no problem retrieving data but the Continuous From does not go to the next Record Selector.
I have tried commands below without success:
DoCmd.RunCommand acCmdInsertRows
DoCmd.GoToRecord , , acNewRec
Code:
....
Set db = OpenDatabase("D:\Test.mdb")
strSql = "SELECT Table1.* FROM Table1 WHERE strSO = '" & vbSO & "'"
Set rs = db.OpenRecordset(strSql, dbOpenDynaset)
rs.MoveFirst
If (Not IsNull(rs!CorroID)) Then
Do Until rs.EOF
Me.txtID.SetFocus
Me.txtID1.Value = rs!CorroID
etc...
DoCmd.GoToRecord , , acNewRec '##Problematic line##
Me.Requery
rs.MoveNext
Loop
End If
...
I do not have any error.
Any help will be appreciated.
Thanks.