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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Edit Union Query??



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 09:57 PM posted to microsoft.public.access.forms
amanda_jb
external usenet poster
 
Posts: 23
Default Edit Union Query??

Does anyone know if it is possible to have a Union Query that is writable? I
have two tables for parts shipped, spares and repair. After they have
shipped, serial #'s are entered on one main page. I would like them all to
be in one datasheet rather than two to make things less confusing. Maybe I'm
just going about this the wrong way by doing a Union, but don't know any
other option.

here is my query as of now (that is not a writable format):


SELECT MultipleOrderID, PartNumber, SerialNumber
FROM MultipleOrderParts
UNION ALL SELECT MultipleOrderID, PartNumber, SerialNumber
FROM MultipleOrderSpareParts;


Plesae help????


thank you!!

--
Amanda
  #2  
Old April 20th, 2010, 10:24 PM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Edit Union Query??

Union queries are not writable, we usually call it 'updateable'.
I am wondering why you would have 2 tables for parts shipped, spares and
repair?
Perhaps you would explain the table setup in more detail and we may be able
to suggest an alternative.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia



"amanda_jb" wrote in message
news
Does anyone know if it is possible to have a Union Query that is writable?
I
have two tables for parts shipped, spares and repair. After they have
shipped, serial #'s are entered on one main page. I would like them all
to
be in one datasheet rather than two to make things less confusing. Maybe
I'm
just going about this the wrong way by doing a Union, but don't know any
other option.

here is my query as of now (that is not a writable format):


SELECT MultipleOrderID, PartNumber, SerialNumber
FROM MultipleOrderParts
UNION ALL SELECT MultipleOrderID, PartNumber, SerialNumber
FROM MultipleOrderSpareParts;


Plesae help????


thank you!!

--
Amanda



  #3  
Old April 20th, 2010, 10:28 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Edit Union Query??

On Tue, 20 Apr 2010 13:57:02 -0700, amanda_jb
wrote:

Does anyone know if it is possible to have a Union Query that is writable?


No, because there is none.

I have two tables for parts shipped, spares and repair. After they have
shipped, serial #'s are entered on one main page. I would like them all to
be in one datasheet rather than two to make things less confusing. Maybe I'm
just going about this the wrong way by doing a Union, but don't know any
other option.

here is my query as of now (that is not a writable format):


SELECT MultipleOrderID, PartNumber, SerialNumber
FROM MultipleOrderParts
UNION ALL SELECT MultipleOrderID, PartNumber, SerialNumber
FROM MultipleOrderSpareParts;


A part is a part is a part, it seems! I'd be inclined to use one Parts table
related one to many to whatever other table or tables are involved. What are
the other fields in MultipleOrderParts and MultipleOrderSpareParts? What is
the purpose of this form?
--

John W. Vinson [MVP]
 




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


All times are GMT +1. The time now is 04:23 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.