ms-access


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.


Related Links

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
Replace Keywords
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

Categories

HOME
image
hook
minimum-spanning-tree
tizen
nullpointerexception
jsp-tags
malloc
append
synchronization
adobe-analytics
spring-xd
imacros
size
clojurescript
transformation
windows-7-x64
crystal-reports-2008
one-hot-encoding
poltergeist
greendao
assistant
atlassian-crucible
libuv
delicious-api
bpel
calibre
cloud-code
catalog
wpf-controls
dosbox
retina-display
withings
greenrobot-eventbus
pdf-reactor
core-plot
wptoolkit
menuitem
youcompleteme
revapi
alphabet
dropbox-php
integrity
memory-alignment
gcsfuse
nbconvert
lync-client-sdk
titanium-android
account-kit
query-performance
abcpdf9
measures
clang-static-analyzer
qgraphicsview
bluegiga
php-internals
tcpserver
mutation-observers
simple-framework
django-unittest
service-accounts
event-bubbling
sniffer
javax.mail
csquery
python-green
fscommand
angularjs-ng-click
android-imagebutton
zend-route
marmalade
seaside
uv-mapping
aqtime
inbox
dataadapter
bitsharp
quickdialog
multipage
errai
viewswitcher
netdna-api
data-loss
external-accessory
psi
django-tagging
revisions
database-management
phonon
defensive-programming





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm