A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Subform problem



 
 
Thread Tools Display Modes
  #1  
Old October 30th, 2008, 08:46 PM posted to microsoft.public.access.forms
Serendipity
external usenet poster
 
Posts: 74
Default Subform problem

Here is what I have:
1) I have a main form called frmInspectionReport_AddNew with a subform
called frmItemsChosen.
2) The subform is from a query called qryItemsChosen.
3) The subform is on a tab control page.

The information that the query retrieves is based on items entered on the
previous tab control page (there is 3 tabs) as additional information needs
to be entered. The only way I can get the subform to display the information
entered is to go to design view and back to form view.

I have tried macros to refresh the query, close and open the form, etc with
no luck. What am I doing wrong? How do I get the information to display
without going to the design view? I would like the information to
automatically display when you click on the tab control rather than
displaying a blank subform.

Any help is greatly appreciated.
Kenirae

  #2  
Old October 30th, 2008, 09:42 PM posted to microsoft.public.access.forms
Mark A. Sam[_3_]
external usenet poster
 
Posts: 468
Default Subform problem

Serendipity,

Try requerying the subform:

[frmItemsChosen].Requery
(that is if thr subform control name is frmItemsChosen)

or

Me.Refresh if that doesn't work.

God Bless,

Mark A. Sam



"Serendipity" wrote in message
...
Here is what I have:
1) I have a main form called frmInspectionReport_AddNew with a subform
called frmItemsChosen.
2) The subform is from a query called qryItemsChosen.
3) The subform is on a tab control page.

The information that the query retrieves is based on items entered on the
previous tab control page (there is 3 tabs) as additional information
needs
to be entered. The only way I can get the subform to display the
information
entered is to go to design view and back to form view.

I have tried macros to refresh the query, close and open the form, etc
with
no luck. What am I doing wrong? How do I get the information to display
without going to the design view? I would like the information to
automatically display when you click on the tab control rather than
displaying a blank subform.

Any help is greatly appreciated.
Kenirae



  #3  
Old October 30th, 2008, 10:38 PM posted to microsoft.public.access.forms
Serendipity
external usenet poster
 
Posts: 74
Default Subform problem

Okay.. now I can do it if I click on the background of the tabs but not the
actual tab?? Any reason why I can't get it to work on the tab ( I actually
them as buttons versus tabs). The me.refresh that is. The
[frmItemsChosen].Requery I wasn't able to get the macro to work. I did both
of them on click.

Thanks,
Kenirae
"Mark A. Sam" wrote:

Serendipity,

Try requerying the subform:

[frmItemsChosen].Requery
(that is if thr subform control name is frmItemsChosen)

or

Me.Refresh if that doesn't work.

God Bless,

Mark A. Sam



"Serendipity" wrote in message
...
Here is what I have:
1) I have a main form called frmInspectionReport_AddNew with a subform
called frmItemsChosen.
2) The subform is from a query called qryItemsChosen.
3) The subform is on a tab control page.

The information that the query retrieves is based on items entered on the
previous tab control page (there is 3 tabs) as additional information
needs
to be entered. The only way I can get the subform to display the
information
entered is to go to design view and back to form view.

I have tried macros to refresh the query, close and open the form, etc
with
no luck. What am I doing wrong? How do I get the information to display
without going to the design view? I would like the information to
automatically display when you click on the tab control rather than
displaying a blank subform.

Any help is greatly appreciated.
Kenirae




  #4  
Old October 31st, 2008, 12:54 PM posted to microsoft.public.access.forms
Mark A. Sam[_3_]
external usenet poster
 
Posts: 468
Default Subform problem

Try it in the Chage event of the tab control

"Serendipity" wrote in message
...
Okay.. now I can do it if I click on the background of the tabs but not
the
actual tab?? Any reason why I can't get it to work on the tab ( I actually
them as buttons versus tabs). The me.refresh that is. The
[frmItemsChosen].Requery I wasn't able to get the macro to work. I did
both
of them on click.

Thanks,
Kenirae
"Mark A. Sam" wrote:

Serendipity,

Try requerying the subform:

[frmItemsChosen].Requery
(that is if thr subform control name is frmItemsChosen)

or

Me.Refresh if that doesn't work.

God Bless,

Mark A. Sam



"Serendipity" wrote in message
...
Here is what I have:
1) I have a main form called frmInspectionReport_AddNew with a subform
called frmItemsChosen.
2) The subform is from a query called qryItemsChosen.
3) The subform is on a tab control page.

The information that the query retrieves is based on items entered on
the
previous tab control page (there is 3 tabs) as additional information
needs
to be entered. The only way I can get the subform to display the
information
entered is to go to design view and back to form view.

I have tried macros to refresh the query, close and open the form, etc
with
no luck. What am I doing wrong? How do I get the information to display
without going to the design view? I would like the information to
automatically display when you click on the tab control rather than
displaying a blank subform.

Any help is greatly appreciated.
Kenirae






  #5  
Old October 31st, 2008, 04:45 PM posted to microsoft.public.access.forms
Serendipity
external usenet poster
 
Posts: 74
Default Subform problem

Awesome.. you are fantastic!



"Mark A. Sam" wrote:

Try it in the Chage event of the tab control

"Serendipity" wrote in message
...
Okay.. now I can do it if I click on the background of the tabs but not
the
actual tab?? Any reason why I can't get it to work on the tab ( I actually
them as buttons versus tabs). The me.refresh that is. The
[frmItemsChosen].Requery I wasn't able to get the macro to work. I did
both
of them on click.

Thanks,
Kenirae
"Mark A. Sam" wrote:

Serendipity,

Try requerying the subform:

[frmItemsChosen].Requery
(that is if thr subform control name is frmItemsChosen)

or

Me.Refresh if that doesn't work.

God Bless,

Mark A. Sam



"Serendipity" wrote in message
...
Here is what I have:
1) I have a main form called frmInspectionReport_AddNew with a subform
called frmItemsChosen.
2) The subform is from a query called qryItemsChosen.
3) The subform is on a tab control page.

The information that the query retrieves is based on items entered on
the
previous tab control page (there is 3 tabs) as additional information
needs
to be entered. The only way I can get the subform to display the
information
entered is to go to design view and back to form view.

I have tried macros to refresh the query, close and open the form, etc
with
no luck. What am I doing wrong? How do I get the information to display
without going to the design view? I would like the information to
automatically display when you click on the tab control rather than
displaying a blank subform.

Any help is greatly appreciated.
Kenirae







 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.