Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 23rd, 2006, 06:25 PM
jerry.ranch@pioneer.com
Guest
 
Posts: n/a
Default subform won't display as datasheet

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
  #2  
Old January 23rd, 2006, 07:45 PM
jerry.ranch@pioneer.com
Guest
 
Posts: n/a
Default Re: subform won't display as datasheet

Never mind people
Suddenly it started working properly.
God only knows what I did
Jerry


On Mon, 23 Jan 2006 12:12:40 -0600, jerry.ranch@pioneer.com wrote:
[color=blue]
>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.[/color]

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles