RichO
Registered Yoozer
- Local time
- Yesterday, 18:30
- Joined
- Jan 14, 2004
- Messages
- 1,036
Hey everyone,
In my form I have a button that copies the information from one record to another and opens to the newly created record. This is a sample of the code beneath the button:
This code works fine EXCEPT that it won't copy the Email field. I have tried wrapping the field name in [brackets] but that doesn't make any difference.
There is data in the Email field but Access returns a null value for rs!Email.
Can anybody explain why it is treating this field differently? I've tried everything and I can't figure this one out
Thanks
In my form I have a button that copies the information from one record to another and opens to the newly created record. This is a sample of the code beneath the button:
Code:
Dim rs As Recordset
Dim db As Database
DoCmd.RunCommand acCmdSaveRecord
Set db = CurrentDb
Set rs = db.OpenRecordset("SELECT * FROM tb_Jobs WHERE Job_Number = " & Me.Job_Number)
DoCmd.GoToRecord , , acNewRec
Me.Customer = rs!Customer
Me.Customer_Address = rs!Customer_Address
Me.Customer_City = rs!Customer_City
Me.Customer_State = rs!Customer_State
Me.Customer_Zip = rs!Customer_Zip
Me.Home_Phone = rs!Home_Phone
Me.Fax = rs!Fax
Me.Email = rs!Email
This code works fine EXCEPT that it won't copy the Email field. I have tried wrapping the field name in [brackets] but that doesn't make any difference.
There is data in the Email field but Access returns a null value for rs!Email.
Can anybody explain why it is treating this field differently? I've tried everything and I can't figure this one out

Thanks