ineloquucius
Programmer
I want to open an MSACCESS form, go to the "new" record, and copy a value from the previous form to a particular field in the "new" record.
For example: Auto shop invoicing--I open a form "new invoices" and select an existing customer. But the customer is bringing a new vehicle so I click a button activating the form "vehicles", filtered to show this customers vehicles only, and advance directly to the "new" record. No problem so far, but I want the "customer number" field of the "new" record to automatically be assigned the value of the customer number on which I've filtered this list. I've tried starting simply by assigning this field to an absolute as in: "Forms![vehicles]![customer number] = 4" . But this is apparently a nonsense statement on my part. I've substituted periods for !'s and vice versa. How do I perform this VERY SIMPLE field value assignment in Access's visual basic?
Much appreciated
For example: Auto shop invoicing--I open a form "new invoices" and select an existing customer. But the customer is bringing a new vehicle so I click a button activating the form "vehicles", filtered to show this customers vehicles only, and advance directly to the "new" record. No problem so far, but I want the "customer number" field of the "new" record to automatically be assigned the value of the customer number on which I've filtered this list. I've tried starting simply by assigning this field to an absolute as in: "Forms![vehicles]![customer number] = 4" . But this is apparently a nonsense statement on my part. I've substituted periods for !'s and vice versa. How do I perform this VERY SIMPLE field value assignment in Access's visual basic?
Much appreciated