Hi, back again with another list box problem, 3rd in two days!
I am wanting to create a list box that lists all the results of a
query. I am using Access 2000, and I'm sure this is easier to do in
Access 2003, but seeing as I don't have it I'll have to make do! using
the list box wizard I try to base the list box on the query i am using
(qryAvailable_C ars). However i always receive an error message saying
"No value given for one or more required parameters".
Therefore, i decided to use the following code as the Row source for
the list box:
SELECT [qryAvailable_Ca rs].[Car ID], [qryAvailable_Ca rs].[Reg Number],
[qryAvailable_Ca rs].[Type], [qryAvailable_Ca rs].[Fuel Type],
[qryAvailable_Ca rs].[Gearbox] FROM qryAvailable_Ca rs;
(The query qryAvailable_ca rs contains the fields Car ID, Reg Number,
Type, Fuel Type, Gearbox)
However, when i do this, the list box only returns the first field of
all the records, Car ID. this is pretty pointless! There is probably a
mistake with the above coding. would be grateful for any pointers.
thanks 2 1267
Your query is fine, you need to look at the properites of the listbox
in design view (on your form?).
Double click on the listbox, on the box that pops up - look at the
format tab. Then change the column count to more than one. Of course
this will in the end only display the Card ID, but on clicking the box
- when it drops down you'll see the other values (also you may have to
change the width of the listbox).
Dave
On 23 Dec 2004 12:19:39 -0800, ormy28 wrote: Hi, back again with another list box problem, 3rd in two days!
I am wanting to create a list box that lists all the results of a query. I am using Access 2000, and I'm sure this is easier to do in Access 2003, but seeing as I don't have it I'll have to make do! using the list box wizard I try to base the list box on the query i am using (qryAvailable_C ars). However i always receive an error message saying "No value given for one or more required parameters".
Therefore, i decided to use the following code as the Row source for the list box:
SELECT [qryAvailable_Ca rs].[Car ID], [qryAvailable_Ca rs].[Reg Number], [qryAvailable_Ca rs].[Type], [qryAvailable_Ca rs].[Fuel Type], [qryAvailable_Ca rs].[Gearbox] FROM qryAvailable_Ca rs;
(The query qryAvailable_ca rs contains the fields Car ID, Reg Number, Type, Fuel Type, Gearbox)
However, when i do this, the list box only returns the first field of all the records, Car ID. this is pretty pointless! There is probably a mistake with the above coding. would be grateful for any pointers. thanks
You need to set the column count to 5.
Set the Bound Column to 1.
Then also set the column widths property to:
0",1";1";1": 1"
This will hide the bound ID column and display all the others in a
1-inch column.
You can increase or decrease the column widths as needed.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kin®sole |
last post by:
Hi
I'm very new to VB (using VB6)
I have two lists one blank and one containing names in the format of surname
and then forename.I also have a combo box containing forenames.When I
select a forename from my combo box I need to add the corresponding surname
into the blank list box.What is the best way to do this? hope this make
sense
TIA
|
by: Moosebumps |
last post by:
Does anyone here find the list comprehension syntax awkward?
I like it because it is an expression rather than a series of statements,
but it is a little harder to maintain it seems.
e.g. you could do:
result =
for element in list:
if element == 'blah':
|
by: Joseph Barron |
last post by:
Here is a SIMPLE problem that I'm trying to solve.
It works in Netscape 6.2, but IE6 gives ""No such interface
supported."
Below are page1.htm and page2.htm .
In page1.htm, there are two dropdown lists. If you change the
selection of the left one (e.g. choose parentoption2), it
should open up page2.htm in a popup window.
|
by: Shawn Windle |
last post by:
----begin node.h--------
#ifndef NODE_H
#define NODE_H
#include <iostream> //NULL
using namespace std;
class node
{
|
by: Piotr Sawuk |
last post by:
First off, thanks for the help, this group was a great support
for my efforts of learning c++. However, yet again I plan to
throw away what I programmed and re-use a little more of what
stl has to offer:
I would like to create a list of list-nodes of a smaller list
(preferably slist) so that I could iterate through that smaller
list, and iterate through the big list without omitting any
element of the small list. However, the problem...
| |
by: John N. |
last post by:
Hi All,
Here I have a linked list each containing a char and is double linked.
Then I have a pointer to an item in that list which is the current
insertion point.
In this funtion, the user hits the right
and left keys to move this insertion point (cursor)
Here is the problem:
|
by: Kieran Simkin |
last post by:
Hi all,
I'm having some trouble with a linked list function and was wondering if
anyone could shed any light on it. Basically I have a singly-linked list
which stores pid numbers of a process's children - when a child is fork()ed
its pid is added to the linked list. I then have a SIGCHLD handler which is
supposed to remove the pid from the list when a child exits. The problem I'm
having is that very very occasionally and seemingly...
|
by: Xarky |
last post by:
Hi,
I am writing a linked list in the following way.
struct list
{
struct list *next;
char *mybuff;
};
|
by: David Bilsby |
last post by:
All
Apologies for cross posing this but I am not sure if this is a VC 8 STL
bug or simply an invalid use of the iterator.
I have a PCI card access class which basically abstracts a third party
library from the higher level classes. This low level class is used to
allocate locked pages of memory before doing a DMA. The third party
library locks memory and returns a pointer to an internal structure,
which we can simply cast to a (void...
|
by: =?Utf-8?B?Sm9lbCBNZXJr?= |
last post by:
I have created a custom class with both value type members and reference type
members. I then have another custom class which inherits from a generic list
of my first class. This custom listneeds to support cloning:
Public Class RefClass
Public tcp As TcpClient
Public name As String
End Class
Public Class RefClassList
Inherits List(Of RefClass)
Implements ICloneable
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |