473,385 Members | 1,740 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,385 software developers and data experts.

to run a report or open another from from a Combo box

I have attached a table of two column to a combo box, which is of different option for searches, i want, if i select 1 from combo, it should run a report, if two then open another form and and other combo, have more option for more other reports, i think, enough explanation
Sep 1 '15 #1
1 910
Seth Schrock
2,965 Expert 2GB
The way that I would do that would be to add two more fields to your table: ObjectType and ObjectName. Make sure to change the combo box's column count property to 4. Then in the combo box's AfterUpdate event, add the following (I use the name cboObject as the name of my combo box. Change it to what you have):
Expand|Select|Wrap|Line Numbers
  1. Select Case Me.cboObject
  2.     Case "Form"
  3.         DoCmd.OpenForm Me.cboObject.Column(3)
  4.     Case "Report"
  5.         DoCmd.OpenReport Me.cboObject.Column(3)
  6. End Select
Sep 1 '15 #2

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

Similar topics

6
by: Support4John | last post by:
a2k (9.0.6926) SP-3 Jet 4.0 SP-7 I have a form with combo box field that allows the user to select from the combo box or type in the field value that may or maynot be in the combo box field. ...
5
by: ddhung | last post by:
how to insert multible values by making one selection from combo box in forms. any way to code insert SQL in froms??
6
by: icony | last post by:
Hi everyone, Here's my problem. I have a report that i want to use with the command openreport. The report open and close in a fraction of a second. I cant see why i cant view the thing. Cause i...
5
by: sensreview | last post by:
Hello, I need help in selecting a value from combo list thru one lookup table and update different table on MS access form. For eg; I have a lookup table of usernames, I need to use this...
3
by: anirban | last post by:
I am a novice of VB I want to fetch data from combo box or list which is selected give me a easy way to select the data of combo box or list box I can show data in combo box or list box
1
by: Prashantsd | last post by:
I would like to sum the values from combo box and get the result in text box. I have three Combo box which has 2 columns each (Options and Ratings) Options (Ratings) Strongly Agree (50) Agree...
0
by: sapsy | last post by:
How can i extract report sql from my Crystal report using c# Thanks Rohit
11
Hiren Joshi
by: Hiren Joshi | last post by:
Hello All Experts, I am a Moderate VB Programmer. I am developing one Application at the moment with VB 6.0 and MS Access. Operating System is Win XP. Its a Multi User application. What I want...
3
by: kumardharanik | last post by:
Pls could anyone help me how to get data from combo box with my following code i used txt_app_code for combo box name. using System; using System.Collections.Generic; using...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.