Hi,
I never used this function in VBA because I am bit confused how to use it correct.
So, I have table GL_LINES with Colums LINE ID, bla bla bla, GL_LINE_FLAG
I want that after click on button GL_LINE_FLAG column lines are updated to "1" with specific LINE_ID.
I try use For Each //In but looks like I have but dummy at VBA.
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("GL_LINES")
...?
...?
For each ??GL_LINES_FLAG?? in rst (??GL_LINES - table??)
If ??LINE_ID?? = Forms!frm_LINES_ALL.LINE_ID.Value Then
??GL_LINE_FLAG??? = 1
End if
Next
how to set that I need GL_LINES_FLAG?
etc...
Can anyone explain me - I would like to understand how to create it for such case ... but after reading a lot of msdn.mic... pages I got more lost...
Thanks in advance
I never used this function in VBA because I am bit confused how to use it correct.
So, I have table GL_LINES with Colums LINE ID, bla bla bla, GL_LINE_FLAG
I want that after click on button GL_LINE_FLAG column lines are updated to "1" with specific LINE_ID.
I try use For Each //In but looks like I have but dummy at VBA.
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("GL_LINES")
...?
...?
For each ??GL_LINES_FLAG?? in rst (??GL_LINES - table??)
If ??LINE_ID?? = Forms!frm_LINES_ALL.LINE_ID.Value Then
??GL_LINE_FLAG??? = 1
End if
Next
how to set that I need GL_LINES_FLAG?
etc...
Can anyone explain me - I would like to understand how to create it for such case ... but after reading a lot of msdn.mic... pages I got more lost...
Thanks in advance