Hello.
I have a form with a series 5 combo-boxes. All 4 contain the same
query which lists Parts based on a productID from a previous form.
i.e.
cboPart1 = Part ID, Part, ProductID Where ProductID =
Form!frmName!cboProductID
cboPart2 = Part ID, Part, ProductID Where ProductID =
Form!frmName!cboProductID
cboPart3 = Part ID, Part, ProductID Where ProductID =
Form!frmName!cboProductID
cboPart4 = Part ID, Part, ProductID Where ProductID =
Form!frmName!cboProductID
cboPart5 = Part ID, Part, ProductID Where ProductID =
Form!frmName!cboProductID
Now when I open this form I want it to select a specific row for each
combo box
cboPart1 = Row1
cboPart2 = Row2
cboPart3 = Row3
cboPart4 = Row4
cboPart5 = Row5
The PartID stored in the 1st column can be any number becuase of the
filter so I just can't set its value to 1-5.
I need a way to say open the combo box and select a specific row.
Ideas methods?
Thanks in advance. 1 2857
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You could use the ComboBox property ListIndex (zero-based) in the
form's OnCurrent event procedure to set the ComboBoxes. E.g.:
cboPart1.ListIndex = 0
cboPart2.ListIndex = 1
cboPart3.ListIndex = 2
.... etc. ...
Also, see the Access help articles on ListIndex and ListCount.
HTH,
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBP/zZZIechKqOuFEgEQKjjQCgi+U3B28RofEmjCqW5MOaOEuIiwoA oPC5
I6FWhaHlN9QZbHhrxqDF5Qtz
=lO+I
-----END PGP SIGNATURE-----
Ryann wrote: Hello.
I have a form with a series 5 combo-boxes. All 4 contain the same query which lists Parts based on a productID from a previous form. i.e.
cboPart1 = Part ID, Part, ProductID Where ProductID = Form!frmName!cboProductID cboPart2 = Part ID, Part, ProductID Where ProductID = Form!frmName!cboProductID cboPart3 = Part ID, Part, ProductID Where ProductID = Form!frmName!cboProductID cboPart4 = Part ID, Part, ProductID Where ProductID = Form!frmName!cboProductID cboPart5 = Part ID, Part, ProductID Where ProductID = Form!frmName!cboProductID
Now when I open this form I want it to select a specific row for each combo box
cboPart1 = Row1 cboPart2 = Row2 cboPart3 = Row3 cboPart4 = Row4 cboPart5 = Row5
The PartID stored in the 1st column can be any number becuase of the filter so I just can't set its value to 1-5.
I need a way to say open the combo box and select a specific row.
Ideas methods?
Thanks in advance. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mr_burns |
last post by:
hi,
using javascript, how do i select an option in a combo box? i have
tried looking on the internet but dont really know what i should be
searching for. what i want to happen is that when a...
|
by: Jos? |
last post by:
This one droves me completely mad. I did not succeed to exploit the
track given to me by Bob.
I have :
three tables : Clubs, Persons and ClubsPersons that join the two first
in a many to many...
|
by: Sebastian Santacroe |
last post by:
Hello,
I've got a datagrid with two columns and no data. I want
to add data programmically (from DB).
When I try to use sintax like:
dataset.Tables("Department").Rows(0).Item("Percentage
Used")...
|
by: Agnes |
last post by:
I set my datagrid's datasource programmically . However , as the form load,
I found that every column width is the same,
Question 1) How can i adjust it programmically ???
Question 2) I need to do...
|
by: Vmusic |
last post by:
Hi,
I'm using MS Access 2002. I have a form with a combo box built from a
query that returns one column, and that one column is the bound column.
How do you use VBA to programmatically change...
|
by: jjyconsulting |
last post by:
Newbie needing some help. I have a tblParticipants. The fields
include gender, education_level, income, occupation etc., I'm trying to
create a form where a user can run a query from the form and...
|
by: tee |
last post by:
Hi,
How do i sort datagridview programmically, current i have the following code
but i keep get the error saying "DataGridView control must be bound to an
IBindingList object to be sorted.", ...
|
by: mygirl22 |
last post by:
Hi,
I used this code to created 2 combo boxes General and Specific...and Only show Specific (Combo B) when Combo A is chosen.....
What i need now is to know how to assign specific values to the...
|
by: guinb |
last post by:
i have a form with 2 boxes for start date and end date as well as 2 combo boxes for serial number and aircraft type. if i select a specific value for each then the rerport is generated just fine but...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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,...
|
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$) {
}
...
|
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...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |