Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / January 2006

Tip: Looking for answers? Try searching our database.

subform won't display as datasheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jerry.ranch@pioneer.com - 23 Jan 2006 18:12 GMT
So I've been playing with combo boxes and subforms.
Finally, I can make a selection in a combo box, and have that drive an
after update event to open a query or a form.  Works famously.

Now the next step is to bury the form in the same form where the cmb
is located (as a subform)

I use two linked cmb.  And I have linked the second cmb with the
subform.  A selection in the first cmb limits the selection in the
second cmb. A selection in the second cmb drives the form (or qry
actually).

When I make a selection in the cmb's, the info in the subform
changes..as expected.  But the subform only shows data  when I have
the form format property set to single or continuous forms.  If I set
it to datasheet no data shows up.
What am I doing wrong?

Here is the VBA I'm using for the two cmbs

Private Sub cmbCREATORSELECT_AfterUpdate()
Me.cmbEXPTSELECT = ""
Me.cmbEXPTSELECT.Requery
End Sub

Private Sub cmbEXPTSELECT_AfterUpdate()
Me.frmEXPTINFO.Requery
End Sub

frmEXPTINFO is based on qryEXPTINFO that is limited where [CREATOR]=
cmbCREATORSELECT

[CREATOR] and [EXPTNAME] are fields in the qry.

Do you need any other info to help?

Thanks
Jerry
jerry.ranch@pioneer.com - 23 Jan 2006 19:37 GMT
Never mind people
Suddenly it started working properly.
God only knows what I did
Jerry

>So I've been playing with combo boxes and subforms.
>Finally, I can make a selection in a combo box, and have that drive an
[quoted text clipped - 29 lines]
>
>[CREATOR] and [EXPTNAME] are fields in the qry.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.