camerontaylor
New member
- Local time
- Today, 14:11
- Joined
- May 11, 2021
- Messages
- 29
I have a main form, and on that form I have a combobox with employee names, and a button which when pressed, will open a new form with the project that the employee selected has worked on or is working on. On this new form, there are 8 fields, of which all are disabled except for a project status field (combobox for different selections). Each project is a record in a table called ProjectList, and I have the primary key set as an incrementing autonumber, instead of the sequentially number project number (EPyymm-##).
I want to write some VBA for the After-Update() event of the status combobox, which says that when the status = "Completed", open a new form for that specific record which has been updated, so that the user can change the "CompletionDate" field of the record. I am struggling to think of a way to open the form to the specific record, unless there is a way to create a variable with the project number of the updated record which I can reference for opening the updateCompletionDate form.
Any help or advice for a different way to do this is greatly appreciated.
I want to write some VBA for the After-Update() event of the status combobox, which says that when the status = "Completed", open a new form for that specific record which has been updated, so that the user can change the "CompletionDate" field of the record. I am struggling to think of a way to open the form to the specific record, unless there is a way to create a variable with the project number of the updated record which I can reference for opening the updateCompletionDate form.
Any help or advice for a different way to do this is greatly appreciated.