473,387 Members | 1,561 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.

how to open one form from multiple forms using combo box in access 2007

i have one main form in which i insert combo box in which i put name of the forms manually. now on selecting any particluar form name from combo box i want to open the form containg that name without having master child relations . pl let me know coding to allow opening of form on the basis of name selected from cobo box value(form Name)with hiding the main form simultiniously
Jan 2 '19 #1
4 1522
twinnyfo
3,653 Expert Mod 2GB
prabhatjian,

Welcome to Bytes!

Your problem is relatively simple:

Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.OpenForm(FormName:=Me.ComboBoxName)
  2. Me.Visible = False
Hope this hepps.
Jan 2 '19 #2
NeoPa
32,556 Expert Mod 16PB
I think you need a little more than that Twinny :
Expand|Select|Wrap|Line Numbers
  1. Private Sub ComboBoxName_AfterUpdate()
  2.     With Me
  3.         Call DoCmd.OpenForm(FormName:=.ComboBoxName)
  4.         .Visible = False
  5.     End With
  6. End Sub
The sub declaration line is relevant and important in this case I would say.
Jan 3 '19 #3
twinnyfo
3,653 Expert Mod 2GB
@NeoPa
True. But I did not want to presume on when OP wanted the code to execute.

Your solution is certainly more elegant. I’m just a bum from the slum!

;-)
Jan 3 '19 #4
NeoPa
32,556 Expert Mod 16PB
I was going by the wording in the OP.
PrabhatJain:
now on selecting any particluar form name from combo box i want to open the form containg that name
I understand it wasn't 100% clear ;-)
Jan 3 '19 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sam Berry | last post by:
I am in need of some guidance on asscessing the same data from multiple forms. I tried using a collection, but everytime that I try to access the collection, I have to use the new word. colStuff...
4
by: McGuyver24 | last post by:
I have a program called SBA Freshstart running on 2 terminal servers (Windows 2003 Server)using Access 2002 runtime. The version of Access i'm using is 2002. One terminal server runs the program...
10
by: Beatrice | last post by:
I need to open a form selecting all data from a previous form i.e: Form 1) combo box 1 named "cboYearSelect" displayed as "Year" based on qry QryYearList ( only one field "Year") ...
5
by: billa856 | last post by:
Hi, My project is in MS Access 2002. In that I want to open one form multiple times. I put one button on my main form. Now whenever I click on that button than form will be open. Now when I...
32
by: redman08 | last post by:
I have produced an Excel (2007) worksheet, with which I want to create a Pivot Table. This would all be done from a module run on an Access 2007 database. Please can anyone supply some simple...
0
by: efarley | last post by:
Hello can anyone provide me with a way I can access the members of the PivotTable Property in Access 2007? I am writing an Office 2007 Training application and one of the objectives in Access is...
1
by: ncsthbell | last post by:
I created a database using full blown access 2007. I have put it out for users to grab and test using Runtime Access 2007. They have entered data and now I need to go back into a table and change a...
0
by: rserrador | last post by:
Hello. I'm creating a db in access 2007 and i want to have a buton on a report where i can send bcc multiple emails from a query. Can someone help me with the VBA code please.
5
by: SADude | last post by:
Hey all - just found this site and I am hoping you can help me with a problem I am having constructing a query for a MS Access 2007 database. I have 3 tables of data simplified as follows -...
1
by: hanaNa | last post by:
i'm curious how i wanted to continue my commands by creating a multiple forms from ms access by using OpenArgs method.
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.