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.
Is Access's AutoNumber (Increment) guaranteed to increment?
VBA Code to Count all Columns that are numeric in ListBox containing SQL Query Results
How to requery a subform from another form?
Is it possible to create a recursive query in Access?
MS Access 2000 Report needs to be PDF format with URL hyperlinks
Deploying Access as a client-server application
Resize form based on if subform visible
MS Access search for record by textbox instead of dropdown
Uniqueness Constraints in MS Access
Application Icon path in MS Access
Microsoft access is a mere file or data-base server
Is ACE/Jet's IN operator or CHECK constraint 'broken'?
Form.CurrentRecord=1 and Form.RecordSet.Absoluteposition=-1
email using Access and VBA without MAPI
MS Access Properties
Will Access support 35- 40 users writing to a Access database