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

Can you load List Boxes with a selection when you open a form?

Hi (Windows XP Pro, MS Access 2003)

I have a form that has quite a number of list boxes on it. The list boxes only have 3 or 4 selections possible...Pass, Fail, Average, Not Applicable. The form is used for recording many tests performed on equipment. At present as the tests are conducted, the user clicks on the relevant selection in each list box, then when done saves the results to a table.

What I would like to know is if it is possible to 'preload' a selection, so that when the form is opened, the results of the previous test will be shown in each list box but instead of in black color (such as they look at present when an item in a list box is selected) they will perhaps be gray or whatever.

This would mean that the user could compare how each test parameter result is now ,with how it was last time around.
Then when they made their selection for the current test this would be indicated as usual and when the new test was saved the correct results would be recorded?

As always any advise or tips appreciated.
Mar 4 '07 #1
3 1842
NeoPa
32,556 Expert Mod 16PB
I'm not aware of any facility like that. You could try associating a TextBox with each option and display the current (or loaded) value in the TextBox.
Alternatively, you could add some code into your OnCurrent event procedure to populate a bunch of Labels with .Captions to match the loaded values. Just a couple of ideas.
Mar 4 '07 #2
Thanks NeoPa

I thought it might be tricky, and I dont really have room on the form to do the Label or TextBox thing. There is already a method for reviewing the previous record but on another form, but the guys would like to be able to see all the previous tests without looking at the other review form.

Perhaps I might enlarge the form and add the Labels as you suggest.

Thanks again
Mike
Mar 4 '07 #3
NeoPa
32,556 Expert Mod 16PB
No problem Mike.
I rather preferred the label idea myself too, as there is no need to manage properties to ensure it can be written to when required, and also that the operator can't ever change it.
Remember with Label.Captions though, the .Caption property will not be found in the list when typing in the code. That means you'll have to type in Label.Caption for it to work.
Mar 5 '07 #4

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

Similar topics

0
by: CSDunn | last post by:
Hello, I have an Access 2000 ADP main form called frmAD_OpeningForm that needs to support several possible sub forms. The subform that should appear would be based on the combined bound values...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
5
by: Andrew Meador | last post by:
I have a form (Change Card List by Status) with a check box (cboNOT) and a list box (lstStatus). There is an Open Report button that opens a report (Report - Change Card List) which uses a query...
3
by: e | last post by:
I have a form which includes a list box populated with items from a query. When a user double clicks on a row in the list box, each column item is put into a specific text box. The problem...
11
by: woodey2002 | last post by:
This problem is driving me crazy. Hello there, i am trying to create a search form for records in my access database. The search form will contain text boxes and a multi select list box. The user...
1
by: jmartmem | last post by:
Greetings, I have a nagging problem with client-side dynamic dependent list boxes that perhaps someone can help me troubleshoot. I have a form with a series of dynamic dependent list boxes....
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.