E
Esperanza
Hello VBA experts !
I would like to use the GoToRecord method in my form.
But how can I find the record Number of my client ?
if I use : index = rstClient.absolutePosition
idex alway = 0
Thanks in advance !!
Esperanza !!
'---------------------------------------------------------------------------
--------------------
Set db = CurrentDb()
Set rstClient = db.OpenRecordset("SELECT * FROM rSDFFILE_SDFCLIENT WHERE
SDFCLI=" & intNoClient)
sql = "SELECT * FROM rSDFFILE_SDFCLIENT WHERE SDFCLI=" & intNoClient
If rstClient.RecordCount >= 1 Then
index = rstClient.absolutePosition
'DoCmd.GoToRecord acDataForm, "frmContratVente", acGoTo, index
I would like to use the GoToRecord method in my form.
But how can I find the record Number of my client ?
if I use : index = rstClient.absolutePosition
idex alway = 0
Thanks in advance !!
Esperanza !!
'---------------------------------------------------------------------------
--------------------
Set db = CurrentDb()
Set rstClient = db.OpenRecordset("SELECT * FROM rSDFFILE_SDFCLIENT WHERE
SDFCLI=" & intNoClient)
sql = "SELECT * FROM rSDFFILE_SDFCLIENT WHERE SDFCLI=" & intNoClient
If rstClient.RecordCount >= 1 Then
index = rstClient.absolutePosition
'DoCmd.GoToRecord acDataForm, "frmContratVente", acGoTo, index