Solved

MS ACCESS asset management input form

Posted on 2004-03-31
4
324 Views
Last Modified: 2013-12-03
I am trying to make an asset management database.
What i am exactly trying to do is.... i have several categories of assets.... such a PCs,switches etc....
so i have separate input forms for each category and and i have linked that form's FormID to the AssetID.
Sso i have my FormID as the category which distinguishes between different categories of assets.
So, now i have this form.... which has a combo box for selecting the category....
and depending upon which category is selected i am trying to open the input form for that particular category...........
Here, i am trying to open this input form in a tab control page....
Anyidea how should i be doing this....????
P.S. This is an MS Access database 2003.
0
Comment
Question by:khushi_crazygirl
4 Comments
 

Author Comment

by:khushi_crazygirl
ID: 10725284
is there a way to specify the location(like in a specific tab control) where the form should open.......while specifying
DoCmd.OpenForm "formname" command........
0
 
LVL 14

Accepted Solution

by:
JohnK813 earned 20 total points
ID: 10726227
Docmd.OpenForm has a parameter called OpenArgs, the argument(s) you'd like to use when you open the new form.
In addition, the Value property of a tab control holds a number that represents the tab currently selected, starting with 0 (so, TabCtl1.Value =1 for the second tab, TabCtl0.Value = 2 for the third tab...).

So, if you wanted to open your tabbed form to the third tab, in your main form call:

DoCmd.OpenForm TabbedForm, acNormal, , , , , 2 '2 is the value of "OpenArgs"

and in your tabbed form:

Private Sub Form_Load()
  'only do this if OpenArgs are present
  If Not IsNull(Me.OpenArgs) Then
    TabCtl0.Value = Me.OpenArgs
  End If
End Sub
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question