473,651 Members | 3,012 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I've never seen A97 combo-box wizard fail on a valid query until today...

MLH
I invoked the combo-box wizard today, telling it to use a 4-table
union query as a row-source for the combo-box it was assisting
me in building. The error I got was without number and stated,
"Data cannot be retrieved from the source you have selected.
You must select a different table or query to continue in the wizard."
just after I chose the query named
qryAuthsOwnersA ddnlOwnersLienh olders4OneCar.

Have any of you ever seen that error message in A97 before?
I was able to successfully build the combo-box manually. Each
time I tried to use the query to build it, I failed.

The query runs fine, returning the desired records anytime its
launched. And, the manually constructed combo-box works
fine.

Here is the SQL for the union query...
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] & " " &
[AddnlOwnrAddr] & " " & [AddnlOwnrCity] & ", " & [AddnlOwnrState] & "
" & [AddnlOwnrZip] & " " & "(" & [AddnlOwnrCounty] & " county) " &
Format$([AddnlOwnrPhone],"(@@@) @@@-@@@@") & " " &
IIf([Corporation]=True,"(corpora tion)","(person )") AS Item,
tblVehicleJobs. VehicleJobID, "X" AS OLAX, tblAddnlOwnrs.A ddnlOwnrID AS
RecID
FROM tblVehicleJobs INNER JOIN tblAddnlOwnrs ON
tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID
WHERE tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();

UNION SELECT [LienHolderName] & " " & [LienHolderAddr] & " " &
[LienHolderCity] & ", " & [LienHolderState] & " " & [LienHolderZip] &
" " & "(" & [LHCounty] & " county) " &
Format$([LienHolderPhone],"(@@@) @@@-@@@@") & " (corporation)" AS
Item, tblVehicleJobs. VehicleJobID, "L" AS OLAX,
tblLienHolders. LienHolderID AS RecID
FROM tblVehicleJobs INNER JOIN tblLienHolders ON
tblVehicleJobs. VehicleJobID = tblLienHolders. VehicleJobID
WHERE tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();

UNION SELECT [OwnerFName] & " " & [OwnerLName] & " " & [OwnerAddr] &
" " & [OwnerCity] & ", " & [OwnerState] & " " & [OwnerZip] & " " &
"(" & [OwnerCounty] & " county) " & Format$([OwnerPhone],"(@@@)
@@@-@@@@") & " (corporation)" AS Item, tblVehicleJobs. VehicleJobID,
"O" AS OLAX, tblOwners.Owner ID AS RecID
FROM tblVehicleJobs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID =
tblOwners.Owner ID
WHERE tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();

UNION SELECT [AuthCompany] & " " & [AuthAddr] & " " & [AuthCity] & ",
" & [AuthState] & " " & [AuthZip] & " " & "(" &
Format$([AuthPhone],"(@@@) @@@-@@@@") AS Item,
tblVehicleJobs. VehicleJobID, "A" AS OLAX, tblAuth.AuthID AS RecID
FROM tblVehicleJobs INNER JOIN tblAuth ON tblVehicleJobs. AuthID =
tblAuth.AuthID
WHERE tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();

Dec 18 '05 #1
2 1869
MLH
Oops. I had a typo in the 2nd paragraph of the OP...

Last line should-a-read... Each time I tried to use the wizard to
build it, I failed.
Dec 18 '05 #2
MLH wrote:
I invoked the combo-box wizard today, telling it to use a 4-table
union query as a row-source for the combo-box it was assisting
me in building. The error I got was without number and stated,
"Data cannot be retrieved from the source you have selected.
You must select a different table or query to continue in the wizard."
just after I chose the query named
qryAuthsOwnersA ddnlOwnersLienh olders4OneCar.

Have any of you ever seen that error message in A97 before?
I was able to successfully build the combo-box manually. Each
time I tried to use the query to build it, I failed.


I recall it when my SQL in the combo row source was too long. That is,
when I made the SQL actually the row source and not a named query.

Two things I can suggest looking at:

First is if you are putting the name of the query in the row source, ie,
building the query via the Access query builder, saving it as
qryAuthsOwnersA ddnlOwnersLienh olders4OneCar and then, in the row source
property box, selecting qryAuthsOwnersA ddnlOwnersLienh olders4OneCar from
a list of tables/queries.

I wonder if the name is too long? I don't think it would be, but try
saving it as "Test" or something short and see if that helps. This is a
guess.

The second thing is if you are actually putting the SQL in the combo
box. In other words, either building the
qryAuthsOwnersA ddnlOwnersLienh olders4OneCar query in the query builder
and copy/pasting the actual SQL into the row source box OR clicking the
builder button and developing the query from scratch so that there's
"Select blah blah, etc" showing in the row source property rather than
the name of the query.

In this case, it could well be that your SQL is too long (what's
happened to me in the past) for the combo row source property. There's
a limit on the number of characters for the SQL statement in a row
source (I can't recall the character limit). If this is the case,
you'll need to save your sql as a saved query and point the row source
to that query. Again, my posit in the first case is a guess if you run
into the same difficulty.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Dec 18 '05 #3

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

Similar topics

5
17204
by: Harry Haller | last post by:
<select name="cboPlaces" id="cboPlaces"> <option value="3">Countryside</option> <option value="4">Forest</option> <option value="5">Mountain</option> <option value="6">Desert</option> <option value="7">Jungle</option> <option value="7">Swamp</option> <option value="8">River</option> <option value="12">Town</option> <option value="9">Sea</option>
1
1765
by: Tina McGibben | last post by:
I basically have a form with a subform with two combo boxes on the main form which filter the subform. The code below works except I cant seem to get it to show all the worksheets when there is nothing in the buyer combo or status combo. Can someone please advise...thank you. For ease of naming:
2
1481
by: Al | last post by:
hi,I am using asp.net(vb) I am trying to create 3 combo boxes which are dependable on each other. when comb1 is selected, it shows the comb2 data based on the selection in combo1 and when combo2 is selected, combo3 show data based on comb2 selection. in summary, I will end up having 3 combo boxes. I am not sure how to build such taks, I would appreciate your assitance. thanks Al
1
2913
by: Alejandro González | last post by:
Hi I have a combobox binded to a Datatable something like combo.DataSource = dt.DefaultView; combo.DisplayMember = "descField"; combo.ValueMember = "valueField"; it works fine.
2
1377
by: G .Net | last post by:
Hi Is there a way to prevent the combo displaying its list of items when the "combo arrow" is clicked? The problem I'm trying to resolve is that depending on a Boolean value, which is set according to other items on the form, I want to prevent the combo from being used. I suppose I could set the combo to be disabled but I'm wondering if there is something like
8
2197
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose Product where as the Row Source (See properties): SELECT tblProducts.ProductName, tblProducts.ProductName FROM tblProducts ORDER BY ProductName;
3
4740
by: John | last post by:
AC2007 I changed my combo's row source and then the autocomplete stopped working. The combo is two columns, bound to the first. First column is primary key (ID). Second column is a concatenation of two fields (Descrip & UserID). When I start typing letters of an existing description (Descrip), the combo does not autocomplete. If I select a choice from the combo, it
0
1468
by: Jeff | last post by:
I don't remember this being that hard. Or maybe it's just early senility. On a simple bound continuous form I have a combo for filtering the form by customer. The form record source is a sql statement that checks the combo and filters accordingly. The combo simply requeries the form. More often than not the selection in the combo disappears after the requery, though not always. The only consistence seems to be that if the result is no...
4
1578
by: User | last post by:
Hi people, Excuse if my question is silly, but... i have 2 combo boxes in my project they are binded to fields from same table... one is binded do Code field and another to Description field i want to sincronize both...
0
2525
Cathode Follower
by: Cathode Follower | last post by:
When you populate a combo you load it with data that normally comes in the form of a code and a description - but the combo is only interested in the description. By creating a class derived from a combo, with additional properties, you can use it to keep the codes as well. When the user selects a description, you can get the code from the control. Here's how I do it: Public Class ComboControl : Inherits System.Windows.Forms.ComboBox ...
0
8278
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
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 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...
1
8466
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,...
0
7299
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
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
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
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...

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.