MS Acces - Modify data in Form and save record
I have a simple question but somehow I just couldn't find a proper solution online. In a form there is a text box. It gets its data via dlookup from a table. With a button I want to allow editing by setting Me!AllowEdits = True So save there is a button with the code DoCmd.RunCommand acCmdSaveRecord Anyway - by clicking the editing button I'm not able to modify the text written in the text box. Does anybody of you know a solution? Thanks in advance.
Why are you using DLookup()? The acCmdSaveRecord command will not save calculated data. This value returned by DLookup() will not be saved to table without first running code to save it into a field, like Me!fieldname = Me.textboxname. So you can have another textbox BOUND to that field and that textbox can be editable.
Opening/reading Access database in Classic ASP?
Unable to locate Code Signing Certificate
Access Query - Syntax error
Display a count number in a Access Report into a Text Box on Access form
Long Text change to rich text still only allows 255 characters in ACCESS 2016 db
Use variable to SELECT records in a recordset
Microsoft Access 2010: ComboBox text extraction / search
“Couldn't find Instalable ISAM” VB6 Data Control to Access DB
Access Navigation Control BrowseTo "The command or action 'BrowseTo' isn't available now. Error 2046
Add a record (that does not already exist) to a table from a userform
Access 2010 report invoice total
linked table xxx is unavailable. Microsoft access cannot contact the server
Does this Dlookup have incorrect syntax?
How to combine two fields in Form to one field from Microsoft Access?
Report building from selection in datasheet