ms-access


Create a New Record in a SubForm on button click MS Access 2013 VBA


I have a main form called MForm on that form I have a subform that is a datasheet called SForm.
What I would like to do:
On MForm I have a button called cmdNew
when I click that button I would like to create a new record inside subform.
But I am not sure what the VBA would look like in order to make that happen.
On the button all you need to do is this:
Me!SForm.SetFocus
DoCmd.GoToRecord , , acNewRec

Related Links

How do I select a specific column based on a variable in a MS Access query?
MS access columns to rows
Windows 7 VirtualStore with Access 2010 and FtpGetFile
Maximum Field Reached for Access 2007
indexing without duplicate and that imapct on speed of data retrieval
Issue using Access DoCmd.Rename on table: linked names not renamed
accde ran using runtime stops any code from executing
How can I use the database commands 'Seek' and results 'NoMatch'?
Adding multiple records to a table using radio buttons and check boxes, Access 2003
Get caption of closed report
Query access db using silverlight in an oob app with full trust?
runing a query of combinationfield in runtime,how?
Vim macro with ^M doesn't work
Infinitely looping through a recordset in VBA
Issue with the TOP 1 query
Calculating days between dates and parameters in MS Access

Categories

HOME
variables
azure-data-factory
server
youtube-api-v3
pheatmap
rascal
visual-studio-2005
event-handling
worldwind
windows-7-x64
samoa
openedx
tokenize
zurb-foundation-6
typo3-6.2.x
delicious-api
directx-10
google-cloud-endpoints-v2
avcapturesession
textmate
dartium
ws-security
preconditions
android-tabhost
segment
btrace
avconv
komodoedit
revapi
dds
prolog-setof
fancybox-2
integrity
sqlclient
pearson
iso8601
fuzzy-search
react-native-listview
qgraphicsview
maven-tomcat-plugin
eclipse-clp
comobject
wireshark-dissector
dukescript
microbenchmark
apache-commons-fileupload
mmc
apache-commons-net
operator-precedence
phalanger
document-classification
has-many-through
fluentautomation
bundles
xsockets.net
web2py-modules
qt-faststart
anonymous-methods
bluepill
wse3.0
external-accessory
cinema-4d
mysql-error-1005
blitz++
mozilla-prism
brewmp
audio-capture
ctp4

Resources

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
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App