Solved

MS ACCESS asset management input form

Posted on 2004-03-31
4
291 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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now