473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VBA quick question

I am trying to filter the selections made from a query on a form with
the tab control. In general there will be 2 or 3 results for the
query, and there are 3 tabs. The tabs have the same name as one of
the fields in the query, so the easiest way to filter would be to pull
the name of the tab in and apply a filter whenever the user changes
which tab is accessed. However, i am unable to grab the tab name
through VB, perhaps someone would be able to assist me?
-KB
Nov 13 '05 #1
1 1285
rkc

"isaphrael" <id******@yahoo.com> wrote in message
news:54**************************@posting.google.c om...
I am trying to filter the selections made from a query on a form with
the tab control. In general there will be 2 or 3 results for the
query, and there are 3 tabs. The tabs have the same name as one of
the fields in the query, so the easiest way to filter would be to pull
the name of the tab in and apply a filter whenever the user changes
which tab is accessed. However, i am unable to grab the tab name
through VB, perhaps someone would be able to assist me?
-KB


You have to dig into the tab controls Pages collection.

Me.MyTabCtl.Pages(Me.MyTabCtl.Value).Name



Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.