Solved

MS ACCESS asset management input form

Posted on 2004-03-31
4
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 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