M
MyVi
Hi everyone.
How would you help me with this please?
Here there is a MDB with the simple problem. This MDB has nothing else
but the stuff to solve the problem (to build the specific code to make
it work)
http://www.easy-sharing.com/63046/Copia de fechas.mdb.html
As you can see, there is a Query [cCOPIA] with 2 filds: [FechaOrigen] &
[Grupo].
In a FORM I have 2 TextBox one for each Query's fields.
What I need to do is to input a DATE into the TextBox of the
[FechaOrigen] and to see the nº you have in [Grupo] and to copy the
same DATE in the [FechaOrigen] in all those cells where in [Grupo] you
have the same nº.
What this is, simply, is that I have several things in the GROUP 3 and
when I am in one of those things.. and I put a DATE, I want this date
to be copied in the other cells of the same GROUP. That's it.
Well, so far I am trying to do so with this CODE (you can check it
out).
Private Sub Texto3_AfterUpdate()
Dim stSQL As String
stSQL = "UPDATE cCOPIA SET cCOPIA.FechaOrigen = " & Me.FechaOrigen & "
WHERE (((cCOPIA.Grupo) =" & Me.Grupo & "));"
CurrentDb.Execute stSQL
End Sub
But I am no really good on coding and I just got this not really
working.
Could anyone try to help me solve it, please?
If you get the MDB file, you have the fast and easy oportunity to check
the problem and to find out the solution.
http://www.easy-sharing.com/63046/Copia de fechas.mdb.html
Thank you.
Vic
How would you help me with this please?
Here there is a MDB with the simple problem. This MDB has nothing else
but the stuff to solve the problem (to build the specific code to make
it work)
http://www.easy-sharing.com/63046/Copia de fechas.mdb.html
As you can see, there is a Query [cCOPIA] with 2 filds: [FechaOrigen] &
[Grupo].
In a FORM I have 2 TextBox one for each Query's fields.
What I need to do is to input a DATE into the TextBox of the
[FechaOrigen] and to see the nº you have in [Grupo] and to copy the
same DATE in the [FechaOrigen] in all those cells where in [Grupo] you
have the same nº.
What this is, simply, is that I have several things in the GROUP 3 and
when I am in one of those things.. and I put a DATE, I want this date
to be copied in the other cells of the same GROUP. That's it.
Well, so far I am trying to do so with this CODE (you can check it
out).
Private Sub Texto3_AfterUpdate()
Dim stSQL As String
stSQL = "UPDATE cCOPIA SET cCOPIA.FechaOrigen = " & Me.FechaOrigen & "
WHERE (((cCOPIA.Grupo) =" & Me.Grupo & "));"
CurrentDb.Execute stSQL
End Sub
But I am no really good on coding and I just got this not really
working.
Could anyone try to help me solve it, please?
If you get the MDB file, you have the fast and easy oportunity to check
the problem and to find out the solution.
http://www.easy-sharing.com/63046/Copia de fechas.mdb.html
Thank you.
Vic