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.
data type mismatch error in criteria expression-ms access
Access Main Form 'Enter Parameter Value'
How to get a combobox2 to display records only relating to the selection made in combobox1?
Ms Access: Running an update query
Access Query that brings up decimal amounts
Access 2016 Processes not being killed during Automation but same works for Access 2013/10/07
Unable to use Multivalue field in an exsting Access form
Insert value from textbox into 2 different table ms-access
Access 2013 Expression Builder not displaying
Missing ACCDB database drivers
MS Access Form button that allows user to browse/choose file, then imports file to a table
Can codesmith generator work with MS Access provider?
Access file unable to run in x64
Form.Seltop not selecting top most record
I have an ADO recordset, now I want to create a table from it but not at its connection location. How?
weighted average caluculation in access table