A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

UNION QUERY NOT WORKING



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2004, 10:51 AM
angie
external usenet poster
 
Posts: n/a
Default UNION QUERY NOT WORKING

i have created a field in a table that is based on (retrieves data) from two
different fields from two different tables. the table is working fine but the
form i have created based on the table fails to work properly with the
particular field.

the code is: "SELECT [DESCRIPTION] AS [liabilities]
FROM [IN-OUT-TBL] WHERE [TYPE]="DEBIT"

UNION SELECT [EXPENSES] AS [liabilities]
FROM [EXPENSES-MIX-FIX-TBL]

the error message i get when working with the form specifies that the code
contains punctuation errors and it is too long!

but why is the table working then?

pls give me a hint!
  #2  
Old December 16th, 2004, 01:10 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Angie

How did you do that? How did you get Access to retrieve data into one
table, based on other tables' data?

More info, please...

Jeff Boyce
Access MVP

"angie" wrote in message
...
i have created a field in a table that is based on (retrieves data) from

two
different fields from two different tables. the table is working fine but

the
form i have created based on the table fails to work properly with the
particular field.

the code is: "SELECT [DESCRIPTION] AS [liabilities]
FROM [IN-OUT-TBL] WHERE [TYPE]="DEBIT"

UNION SELECT [EXPENSES] AS [liabilities]
FROM [EXPENSES-MIX-FIX-TBL]

the error message i get when working with the form specifies that the code
contains punctuation errors and it is too long!

but why is the table working then?

pls give me a hint!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form input in query, Union and crosstab query gives error msg Christian Running & Setting Up Queries 2 November 17th, 2004 05:00 PM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Too Few Parameters error Mail Merge Access Parameter Query Tony_VBACoder Mailmerge 3 September 14th, 2004 12:15 PM
UNION Query truncating Memo fields Matthew DeAngelis Running & Setting Up Queries 4 June 10th, 2004 02:17 PM


All times are GMT +1. The time now is 12:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.