ms-access


MS Access = referencing a control that is within a sub form


So I have a form, with a subform control that acts as a navigation scheme for my Main Form. Within the sub form, there is a sub form2 that actually contains the controls for data entry.
So the Main Form is almost just like a design shell around the sub2 within sub1 structure. So in subform1 there is 10 clickable buttons that open 10 different forms in the subform2 window. The subform2 contains the controls.....so here is my issue/question:
So if I have a click event on the subform2 where i am trying to open the next form (subform2 form) within the subform1 child control, which is within the Main Form, what is the vb syntax for handling this?
I am not sure if i am asking this correctly.
I tried:
Forms!SubForm1.MyChild.sourceobject = "NextSubForm2"
but this only works if the Main Form is not open....like if I only had the SubForm1 open.
One more thing, this is code behind the form of the SubForm2 (2 being the sub within the sub within the form).
The main form from a subform's point of view is:
Me.Parent
You can build on this:
Me.Parent.Subform1ControlName.Form.AControl
See also: http://www.mvps.org/access/forms/frm0031.htm
So:
Me.Parent.Subform1ControlName.SourceObject = "SomeForm"

Related Links

One Form for entering/modifying information for multiple tables - WITHOUT SUBFORMS
Dependent comboboxes in subform
Exporting from Enterprise Guide to access database
how to tell if ms access file was created as 32-bit or 64-bit?
Access 2013 create text file and combine with header and footer
Is it possible to have a form in ms-access get “signed” by a stylus as an entry? If so, how?
On which page will a record in an Access report get printed?
Need help determining date of change in versioned data using MS Access
scanning for serial numbers
How to add values for each entry in multivalued lists [ACCESS]
DSUM Formula Not Working
Format Currency to Group By Access Query
Trying to incorporate IIF in Select Statement
MS Access 2010 Issue
How to filter by date/time in an MS Access report?
How to get keyboard 'Enter' to trigger button press on Access form?

Categories

HOME
openlayers
clips
hive
view
stock
onedrive
fft
cvs
razor
spring-jdbc
jpeg
alpha
paradox
node-notifier
synchronization
gitpitch
communication
mapserver
etl
zend-framework3
spring-tool-suite
commonmark
hex-editors
ghc
kryo
object-detection
intentfilter
java-7
angular2-aot
opennlp
xpages-ssjs
buildbot
javacv
su
url-scheme
nhapi
log4js-node
dbclient
bpel
nouislider
skia
bcd
calibre
rotational-matrices
overlap
plsql-psp
vxworks
qwerty
swisscomdev
space-complexity
mixture-model
sfdc
node-gyp
ibpy
flashair
slick-3.0
angular-resource
appcompat
filepicker
logparser
togetherjs
csound
android-cursor
np-complete
mako
or-tools
background-service
transmitfile
paypal-express
autorest
netmq
natvis
maven-tomcat-plugin
marching-cubes
collapse
muse
operation
bigbluebutton
python-green
nsbutton
typeof
sgen
elliptic-curve
reactfx
htmlcleaner
concurrent-collections
centos5
openlaszlo
intentservice
cdc
apc
listings
quartz-graphics
ora-00911
random-seed
tinn-r
cisco-jtapi
manchester-syntax
pysimplesoap
hosts-file
adk
gwt-ext
heartbeat
tomcat-valve
xdomainrequest
rfc1123
remember-me
subviews
filtered-index
genealogy
ugc
ntvdm.exe

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