R
Rick Schneider
This would seem simple but I can't seem to find a way to do it.
I have a form whose underlying query is a join between 2 tables, one with a
field "Web_Desc" (string) that is populated and the other with a field
"Web_page_Description" that I want to copy the value in the first 's field
into). In other words, I want the two fiekds to have the same value. The
only way I have found to do this is set up a recordset and cycle through it
as follows:
Private Sub Command7_Click()
Dim rs As DAO.Recordset
Dim db As Database
Set db = CurrentDb
Set rs = db.OpenRecordset("qry_web_temp")
rs.BOF
Do While Not rs.EOF
Web_page_Description = Web_Desc
MoveNext
Loop
rs.Close
db.Close
End Sub
In the form, it will complete the first record and then stop. Should this
be done outside the form? I have not worked with recordsets before and so am
confused.
Any help is greatly appreciated.
I have a form whose underlying query is a join between 2 tables, one with a
field "Web_Desc" (string) that is populated and the other with a field
"Web_page_Description" that I want to copy the value in the first 's field
into). In other words, I want the two fiekds to have the same value. The
only way I have found to do this is set up a recordset and cycle through it
as follows:
Private Sub Command7_Click()
Dim rs As DAO.Recordset
Dim db As Database
Set db = CurrentDb
Set rs = db.OpenRecordset("qry_web_temp")
rs.BOF
Do While Not rs.EOF
Web_page_Description = Web_Desc
MoveNext
Loop
rs.Close
db.Close
End Sub
In the form, it will complete the first record and then stop. Should this
be done outside the form? I have not worked with recordsets before and so am
confused.
Any help is greatly appreciated.