Nov 19, 2002 #1 helpplz Technical User Joined Nov 10, 2002 Messages 6 Location US This is a repost. If anyone knows the solution to this problem please let me know. I thank you for you time and knowledge. thread705-408805
This is a repost. If anyone knows the solution to this problem please let me know. I thank you for you time and knowledge. thread705-408805
Nov 20, 2002 #2 Frink Programmer Joined Mar 16, 2001 Messages 798 Location GB Hallo, I think I see the problem. Your previous thread had: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, Forms!frmCustomerInformation!CustomerID = Forms!frmCustomerAccountLookup!CustomerID When the Forms!... references are interpreted by the machine this would give: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, 28 = 124 Obviously that's not going to work. What you need to do is: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, "CustomerID = " & Forms!frmCustomerAccountLookup!CustomerID (Assuming the code is in frmCustomerInformation) This would then be interpreted as: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, "CustomerID = 124" Which is much better. Hope that helps, - Frink Upvote 0 Downvote
Hallo, I think I see the problem. Your previous thread had: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, Forms!frmCustomerInformation!CustomerID = Forms!frmCustomerAccountLookup!CustomerID When the Forms!... references are interpreted by the machine this would give: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, 28 = 124 Obviously that's not going to work. What you need to do is: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, "CustomerID = " & Forms!frmCustomerAccountLookup!CustomerID (Assuming the code is in frmCustomerInformation) This would then be interpreted as: Code: DoCmd.GoToRecord acForm, "frmCustomerInformation", acGoTo, "CustomerID = 124" Which is much better. Hope that helps, - Frink