Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2005

Tip: Looking for answers? Try searching our database.

check whether an option is in a combo box or not

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DowningDevelopments - 11 Jul 2005 15:51 GMT
hello folks,

this ones slowly been turning my brains to noodles all day and i need some
help! What ive got is a form which allow a parking space to be set up for a
student, each student has a student reference which is the primary key to the
students database, this also holds the name of the building he/she/it is
living in. This is important becasue only some student accomodation have
parking spaces and i want to there to be a warning if the user tries to give
a student living in a building that doesnt have a parking space a space.

On the parking form there is a text box where you put in the students
registration detail and ive also got a textbox that will autofill with the
students builing,  there is also a combo box where you can tell it which
building the parking space is going to be allocated to. What i want is for
the combo box to say the same thing as the building text field if you can
allocate one to that building and to give a warning if you cant.

The combo box has a query control source called 'building with parking'. I
was thinking of using an array to store the values of this query and then
compare it with the value of the building textbox, but i dont know how to
read the values that are stored as combo box options. Any ideas?

with much thanks

Amit Patel
Marshall Barton - 11 Jul 2005 18:14 GMT
>this ones slowly been turning my brains to noodles all day and i need some
>help! What ive got is a form which allow a parking space to be set up for a
[quoted text clipped - 15 lines]
>compare it with the value of the building textbox, but i dont know how to
>read the values that are stored as combo box options. Any ideas?

You can look at the combo box items using several methods.
Probably the most straightforward is to use the Column
property (no need for an array).

Signature

Marsh
MVP [MS Access]

Access Resource - 11 Jul 2005 20:02 GMT
Amit,

I have a reservations module that could be modified that would work very
well for reserving parking spaces for students. The module would be modified
to show all the parking spaces, which ones are reserved and which ones are
still available. You would be able to reserve any available parking space to
the current student while checking that that student is eligible for the
parking space. Send me an email to Access_Resource@yahoo.com and I will send
you a screen shot.

> >this ones slowly been turning my brains to noodles all day and i need some
> >help! What ive got is a form which allow a parking space to be set up for a
[quoted text clipped - 19 lines]
> Probably the most straightforward is to use the Column
> property (no need for an array).
DowningDevelopments - 12 Jul 2005 10:46 GMT
Hello again Mr Bartonm

That column property was just the ticket, i was looking for a simple way to
iterate through the rows and this was it!!! Me and my C programming making
life overcomplex again!!

thanks for your help again,

Amit
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.