Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

MS ACCESS asset management input form

Posted on 2004-03-31
4
Medium Priority
?
365 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 80 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
What we learned in Webroot's webinar on multi-vector protection.
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Suggested Courses

916 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