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

Data in Combo Box in form not relfecting in Access Report
Error with Access Stored Query that uses VBA Modules from excel
Failure creating Access database from TFS 2010
How should I normalize this table?
Is there a decent command Reference for VBA and Access 97?
Access 97 databases
'Undefined function' when using DAO QueryDef in VBA
Access 97 copying field type to other table
A query to combine multiple row values into one field in MS-Access 2003? [duplicate]
set two field primary key
Exporting Foreign Key Definitions as DDL Statements from MS Access
Access Mail Merge to different documents based on specific criteria
I just realized my database is not 1NF compliant. Is it necessary that I rebuild the tables?
MSAccess Error: Class does not support Automation or does not support expected interface
Access 2007 ReportEvents class is not firing events
Access subform in a split view parent - hide from datasheet section

Categories

HOME
reflection
path-finding
layout
analysis
cakephp-2.5
twitter-bootstrap-4
v8
icloud
swagger-ui
node-notifier
nano-server
kentor-authservices
quicklook
postgres-xl
alignment
size
leiningen
hex-editors
progressive-web-apps
pugjs
beyondcompare
introduction
dbext
plunker
autocad-plugin
java-3d
errorlevel
tapestry
chromium-embedded
icloud-api
emgucv
dynamic-featured-image
info.plist
procdump
newline
gsoap
fabric8
nameservers
phonegap
karaf
textmate
azure-sql-database
gesture
reportbuilder
gulp-sourcemaps
acoustics
appcompat
termination
sage-one
dotnetzip
tactic
linode
jspdf-autotable
webdriverjs
sonarlint-vs
nested-sets
login-control
impresspages
autorest
gstreamer-0.10
suffix-tree
cloudbees
sdhc
metaclass
wordml
fouc
quicklisp
responsive-images
ideamart
graph-drawing
google-style-guide
file-copying
id3v2
code-access-security
mechanize-ruby
dbconnection
eclipse-memory-analyzer
yui-compressor
angularjs-controller
pvrtc
mt
armcc
online-compilation
work-stealing
php-parser
zpt
cinema-4d
lang
lpeg
xsdobjectgen
vc90
web-architecture
noscript
gacutil
port-number
ajax-forms

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