Hi Everyone,
I have a small issue. I have a pop up from with some command buttons and one textbox. One of the command buttons imports data from Excel into Access - that works fine. I wanted to place a date in the textbox everytime data is imported into the db.
The text box is unbound, and I the date successfully appears in the txtbox, but it does not save. I tried a label but had the same issue.
Also, do I have to have a form open in order to place a value in a control of that form? Thank you for any help!
I have a small issue. I have a pop up from with some command buttons and one textbox. One of the command buttons imports data from Excel into Access - that works fine. I wanted to place a date in the textbox everytime data is imported into the db.
The text box is unbound, and I the date successfully appears in the txtbox, but it does not save. I tried a label but had the same issue.
Also, do I have to have a form open in order to place a value in a control of that form? Thank you for any help!
Code:
Sub bl()
DoCmd.OpenForm "frmOP", acNormal
Forms!frmOP!txtMyUpdateDate.Value = Date
DoCmd.Close acForm, "frmOP", acSaveYes
End Sub