473,402 Members | 2,072 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,402 software developers and data experts.

Passing the value of a combo box to a query

139 100+
Hi,

I`ve created a query that accepts the value of two date fields on a form and one text field, so that i can produce a report based on the criteria. The date query works fine and so does the text query:

[forms]![frmMyform]![txtClientName]

However, I;d like to replace my text box with a combo box, the values of which come from a table. This is so my users don't misspell the names of my clients.

I've changed my query here to

[forms]![frmMyForm]![cmbClientName]

..but Access refuses to pass the value in the Combo box. Is there anyway around this?

Thanks!
Mar 7 '07 #1
5 11874
Rabbit
12,516 Expert Mod 8TB
It should pass the value just fine.

What are the settings and properties on your combobox.
Row Source
Bound Column
Number of Columns
Mar 7 '07 #2
ndeeley
139 100+
Hi there,

My row source is a table called Client List (SELECT [ClientList].[Client] FROM [ClientList])
The Bound Column is 1, and there are only 1 columns.

Thanks
Mar 8 '07 #3
ndeeley
139 100+
Rabbit,

Got it to work. Thanks for your help.
Mar 8 '07 #4
NeoPa
32,556 Expert Mod 16PB
Rabbit,

Got it to work. Thanks for your help.
Good for you :)
Can you post the solution you found. It may help others if they're in the same boat, or at least let them know to ignore this if it's not the same as their problem.
Mar 8 '07 #5
ndeeley
139 100+
Good for you :)
Can you post the solution you found. It may help others if they're in the same boat, or at least let them know to ignore this if it's not the same as their problem.

Basically I did as you suggested. I changed the location of the field in my query

[forms]![frmBookingIn]![cboClientName]

and ensured that the Bound number was 1, with 1 column, looking at the table in which my client list was stored. Didn't work before, but now it does. Can't explain why!
Mar 9 '07 #6

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

Similar topics

1
by: Giulio | last post by:
Hello, I have a continuous form with a combo box inside. From the combo box I can pick some values which, by the "after-update" event, change some other combo box values determined by a query....
2
by: MX1 | last post by:
HELP! I have a query that gets a few values from a form. The problem I'm having is a date field in the query. When I put the value in the criteria, it works fine. When I put the same value as...
3
by: MX1 | last post by:
I'm ready to pull the hair out of my head. I have a query with a couple of parameters that I want to get from combo boxes on a form. One parameter is a date with a dynamically calculated year and...
8
by: Lyn | last post by:
Hi, Can anyone tell me how the initial value displayed in Combo Box is determined when a form is opened? I am loading the dropdown from one field ("CategoryName") of a table, with "ORDER BY ". ...
2
by: | last post by:
Hi everyone, I have a form with a combo box on it. When you select a value (a PO#) from the combo box, the bound field is the indexID of the selected PO. On the same form, I have a text box...
17
by: Peter Tenk | last post by:
Hi I've never really worked with VBScript - I'm an old-fashioned HTML guy - but I thought I'd have a go because I wanted to do something REALLY SIMPLE in my Access 2000 database. This is a plea for...
3
hyperpau
by: hyperpau | last post by:
Hi there guys! I have a Form where there are three comboboxes. This comboboxes are used as references for the parameter of 3 fields in a query. when I hit a command button in my form, it opens...
2
by: MobiusDick | last post by:
Hi All, I'm in the process of creating a database that allows users to enter details into a form which includes a date range as start and end dates. I have used the inbuilt Calendar Control...
8
ddtpmyra
by: ddtpmyra | last post by:
Hi, I have PHP script that I use for new entry and edit entry, inside the form I have query combo (combo values querying from other table), my problem is how make the default value of my combo to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.