P
pubdude2003 via AccessMonster.com
Hey there,
I have a form with a button with the following code attached to it. I want to
insert the values from the controls on that form to a separate table. (Form
is bound to another table).
It's working fine except for the Text3 field, it inserts the same value for
every record on the form. Weird or what?
If Not rs.EOF Then rs.MoveFirst
Do Until rs.EOF
CurrentDb.Execute "INSERT INTO tblDirectory2" & _
" ( FileDate, subject, justfile )" & _
" VALUES ( '" & Forms!form1!Received & "', '" & Forms!form1!
Subject & "', '" & Forms!form1!Text3 & "' )"
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
The value of the Text3 field is parsed from a separate table, it's the only
thing that makes that field different from the rest. Any help would be
appreciated.
Text3 = Mid$([Contents],[text6]+42,5)
I have a form with a button with the following code attached to it. I want to
insert the values from the controls on that form to a separate table. (Form
is bound to another table).
It's working fine except for the Text3 field, it inserts the same value for
every record on the form. Weird or what?
If Not rs.EOF Then rs.MoveFirst
Do Until rs.EOF
CurrentDb.Execute "INSERT INTO tblDirectory2" & _
" ( FileDate, subject, justfile )" & _
" VALUES ( '" & Forms!form1!Received & "', '" & Forms!form1!
Subject & "', '" & Forms!form1!Text3 & "' )"
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
The value of the Text3 field is parsed from a separate table, it's the only
thing that makes that field different from the rest. Any help would be
appreciated.
Text3 = Mid$([Contents],[text6]+42,5)