473,499 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't seem to format field in listbox on a form to display Yes/No?

MLH
SELECT DISTINCTROW qryVehicleList.VehicleJobID AS VID,
qryVehicleList.Vehicle, qryVehicleList.Reclaimed AS [Reclaimed?],
qryVehicleList.VehicActive AS [Active?], qryVehicleList.Sold AS
[Sold?], qryVehicleList.ProcFee AS [My Fee],
qryVehicleList.DMVFileNumber
FROM qryVehicleList
WHERE
(((qryVehicleList.TowCoID)=[Forms]![frmBrowseVehicles]![Combo0]));

Here's the expression in qryVehicleList's [Sold] field:
Sold: IIf(IsNull([VSaleID]),False,True)

I'm unable to get anything but minus one and zero to display in the
listbox.
Jul 24 '07 #1
2 2761
Sold: IIf(IsNull([VSaleID]),"No","Yes")

"MLH" <CR**@NorthState.netwrote in message
news:uu********************************@4ax.com...
SELECT DISTINCTROW qryVehicleList.VehicleJobID AS VID,
qryVehicleList.Vehicle, qryVehicleList.Reclaimed AS [Reclaimed?],
qryVehicleList.VehicActive AS [Active?], qryVehicleList.Sold AS
[Sold?], qryVehicleList.ProcFee AS [My Fee],
qryVehicleList.DMVFileNumber
FROM qryVehicleList
WHERE
(((qryVehicleList.TowCoID)=[Forms]![frmBrowseVehicles]![Combo0]));

Here's the expression in qryVehicleList's [Sold] field:
Sold: IIf(IsNull([VSaleID]),False,True)

I'm unable to get anything but minus one and zero to display in the
listbox.

Jul 24 '07 #2
MLH
U dah man - perfect work-a-round.
Jul 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4200
by: Fieldmedic | last post by:
I'm attempting to get an arraylist to display in a Listbox (listbox2). The arraylist is created from selections in a different listbox (listbox1). The 1st listbox has a selection mode of...
2
3012
by: Danny | last post by:
Hello I am trying to create a separate listbox and fill it with items based on what is in another field in a database. This field is bound to a field in the underlying database. But the data...
20
3652
by: MLH | last post by:
120 MyString = "How many copies of each letter do you need?" 150 MyVariant = InputBox(MyString, "How Many?", "3") If MyVariant = "2" Then MsgBox "MyVariant equals the string '2'" If...
6
4835
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
2
1870
by: indhu | last post by:
hi, i have a list box in my form, when i click listbox field it should display corresponding value to other textbox fields. like listbox, these are the corresponding text flds person by...
3
1260
by: RallyDSM | last post by:
Pre STory - I've had a lot of problems with this program, and I just added the last part of it (the add item code) and now an older part of the program crashes. Public Structure Stocks Public...
3
7871
by: jaishu | last post by:
I am using ODBC with oracle tables.. My table has columns startdate and end date which are of type varchar(backend tables)..but when i display it in form it should display it as mm/dd/yyyy format,...
4
4558
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet...
3
1357
by: yltang | last post by:
Hi experts: When I design the input form for customers' data, I divide the address into three parts: City, Borough, and RestAddress, where City and Borough are of the listbox type. I have two...
0
7006
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
7169
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
7215
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...
1
6892
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
5467
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,...
1
4917
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...
0
3096
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...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.