davidmcolaco
Technical User
Hi,
I have a form where I have a inputbox to get a value from the user and then open another form and open it on the number of record that the user entered.
The value is passed ok to the other form, because I made a msgbox and it shows the correct number that the user inserted. The problem is that the form doesn't open in the correct record, opens in a empty record.
Bellow I insert the code so that anyone can help me with this.
Pendente = InputBox("Insira o Nº Trabalho que deseja encontrar:")
TrabalhosRS.Close
m_oConn.Close
Unload Me
Trabalhos.Show
With Trabalhos.TrabalhosRS
.MoveFirst
.Find "t_empresa LIKE '%" & Pendente & "%'"
End With
MsgBox "Numero: " & Pendente
Thanks in advance...
I have a form where I have a inputbox to get a value from the user and then open another form and open it on the number of record that the user entered.
The value is passed ok to the other form, because I made a msgbox and it shows the correct number that the user inserted. The problem is that the form doesn't open in the correct record, opens in a empty record.
Bellow I insert the code so that anyone can help me with this.
Pendente = InputBox("Insira o Nº Trabalho que deseja encontrar:")
TrabalhosRS.Close
m_oConn.Close
Unload Me
Trabalhos.Show
With Trabalhos.TrabalhosRS
.MoveFirst
.Find "t_empresa LIKE '%" & Pendente & "%'"
End With
MsgBox "Numero: " & Pendente
Thanks in advance...