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  

Problems with tab form



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2008, 03:08 AM posted to microsoft.public.access.forms
USD305
external usenet poster
 
Posts: 5
Default Problems with tab form

I am trying to create a tabbed form to enter data. My problem is as I move
from tab 1 to tab 2 the fields that I placed in tab 1 carry over to tab 2.
How do i stop the carryover from tab to tab

Thanks!
  #2  
Old April 26th, 2008, 03:20 AM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Problems with tab form

Here's a quick little primer on tabbed pages. Paragraph 2 explains your
particular problem.

First thing to remember is that the Tabbed Pages are all part of a single
form; think of it as a really long form turned on its side. Because it is all
one form, all referencing to any control on it is done in the same manner as
if they were all on one single screen. Create a form in Design View. Goto the
toolbox and click on the Tabbed Control icon; it actually looks like several
manila file folders. Place it on your form and adjust the size to your liking.
If you need more than the two tabbed pages it initially gives you, click on
the tabbed control to select it. Goto Insert and click on Tabbed Control Page
and another tabbed page will be added. Do this as many times as necessary.

This is the really important part: when you go to add a control to a tabbed
page, you must first click to select one of the pages, then add the control.
Otherwise, the control will be added to the form itself, and will show thru
on all tabbed pages!

Once you have the form's Control Source (your table or a query) set up, you
simple add controls as you normally would, heeding the above paragraph.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200804/1

  #3  
Old April 26th, 2008, 07:33 PM posted to microsoft.public.access.forms
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default Problems with tab form

And to add a caveat to Linq's excellent response, you can not use Drag 'n
Drop to move a control to a particular tab page. You need to use Cut 'n
Paste.

USD305 wrote:
I am trying to create a tabbed form to enter data. My problem is as I move
from tab 1 to tab 2 the fields that I placed in tab 1 carry over to tab 2.
How do i stop the carryover from tab to tab

Thanks!


--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200804/1

  #4  
Old April 26th, 2008, 10:11 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default Problems with tab form

Glad you added that, Allan! Reminded me of something else, too! After you
move the controls, if you've placed any code behind any of these controls,
such as OnClick, AfterUpdate, etc, you'll need to select each moved control,
gotot Properties - Events, and if your see [Event Proceedure] next to any of
the Properties, click into that box, then click on the ellipsis (...) that
appears, which should take you to the code module. Then exit back to Design
View. This will re-connect the code to the controls. You'll need to do tis
for any control that you move onto a page ***that has code behind it*** IF
they have no cod events behind them, you're OK as is.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via http://www.accessmonster.com

 




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:27 PM.


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