'rsta is a SQL query that returns (i check by myself using msgboxes)
'rstb also returns (i also check it by myself using msgboxes)
'this .findnext only works when i type the text returned by <rsta!LINHA> by myself, but i need to put it on a variable !
Could you help me ?
The code is this...
Hi all,
First of all, thanks and I am still learning VBA...
I am having some problems with this UPDATE query, access give me errors with <CurrentDb.Execute "UPDATE CAMPOS SET HODDIF = TempB>
I have done it to update my DataBase after a certain field is included.
The code is below...
Thats all ok... I think a bit more and found...
This way it works.. Thanks very much everybody here...
Private Sub txtPlaca_Exit(Cancel As Integer)
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("SELECT * FROM FROTA5 WHERE PLACA = '" & txtPlaca & "'")
rst.MoveFirst...
Thank You TrojanRabbit, it is almost working... but access give me some error (3061 - insufficient parameters) while i am trying to run this code:
Set rst = CurrentDb.OpenRecordset("SELECT PLACA FROM PLACA_E_ID WHERE PLACA = Forms!INCLUIR_VC3!PLACA;")
rst.MoveFirst
Me.IDENT =...
I am doing a query using a macro, that gets the parameter using a filter (it is a typed field by a user in a form).
The macro opens a query that pop up on the screen (always one line and two fields) , and i need to associate the text of one of these fields (of query that pop up) into the field...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.