How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID
= tblAddnlOwnrs.V ehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER
JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID =
tblLienHolders. VehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID =
tblOwners.Owner ID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " &
[AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN
tblVehicleJobs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE
(tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID()) AND
(tblAuth.AuthCa tID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID =
tblProxies.Prox yID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID(); 27 13807
Why do you want to make a table?
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications re******@pcdata sheet.com
"MLH" <CR**@NorthStat e.netwrote in message
news:e5******** *************** *********@4ax.c om...
How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID
= tblAddnlOwnrs.V ehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER
JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID =
tblLienHolders. VehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID =
tblOwners.Owner ID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " &
[AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN
tblVehicleJobs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE
(tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID()) AND
(tblAuth.AuthCa tID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID =
tblProxies.Prox yID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
MLH <CR**@NorthStat e.netwrote in
news:e5******** *************** *********@4ax.c om:
How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient
FROM tblVehicleJobs INNER JOIN tblAddnlOwnrs ON
tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs
INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID =
tblLienHolders. VehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient
FROM tblVehicleJobs INNER JOIN tblOwners ON
tblVehicleJobs. OwnerID = tblOwners.Owner ID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " &
[AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER
JOIN tblVehicleJobs ON tblAuth.AuthID = tblVehicleJobs. AuthID
WHERE (tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID())
AND (tblAuth.AuthCa tID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient
FROM tblVehicleJobs INNER JOIN tblProxies ON
tblVehicleJobs. ProxyID = tblProxies.Prox yID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
save it as a querydef. Then use the make table query wizard
sourced from that querydef.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
SELECT Recipient
into newtable
from
(
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID
= tblAddnlOwnrs.V ehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER
JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID =
tblLienHolders. VehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID =
tblOwners.Owner ID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " &
[AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN
tblVehicleJobs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE
(tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID()) AND
(tblAuth.AuthCa tID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID =
tblProxies.Prox yID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID()
)
MLH wrote:
How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID
= tblAddnlOwnrs.V ehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER
JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID =
tblLienHolders. VehicleJobID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID =
tblOwners.Owner ID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " &
[AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN
tblVehicleJobs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE
(tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID()) AND
(tblAuth.AuthCa tID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM
tblVehicleJobs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID =
tblProxies.Prox yID WHERE
tblVehicleJobs. VehicleJobID=Ge tCurrentVehicle JobID();
On Jul 1, 11:31 am, MLH <C...@NorthStat e.netwrote:
How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM
...
Note: If you're using A97 try changing John's syntax to:
SELECT Recipient
into newtable
from
[
SELECT ...
UNION SELECT ...
UNION SELECT ...
UNION SELECT ...
UNION SELECT ...
]. UQ;
James A. Fortune CD********@Fort uneJames.com
Good question. I really don't want to. But I think I must.
When I use the Union query in the query builder and
click the BANG button to run it - it runs fine, returning
the dynaset I expect. But when I use it with DAO, trying
to walk the records returned - it collapses with an error
saying "Undefined function 'GetCurrentVehi cleJobID' in
expression" and I've been unable to get around it. The
SQL is sound but somehow DAO access to it just isn't
working. I could post my attempt, if you like.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxx
On Sun, 01 Jul 2007 16:16:00 GMT, "Steve" <so***@private. emailaddress>
wrote:
>Why do you want to make a table?
PC Datasheet Providing Customers A Resource For Help With Access, Excel And Word Applications re******@pcdat asheet.com
"MLH" <CR**@NorthStat e.netwrote in message news:e5******* *************** **********@4ax. com...
>How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID = tblLienHolders .VehicleJobID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID = tblOwners.Owne rID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " & [AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN tblVehicleJo bs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE (tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID()) AND (tblAuth.AuthC atID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID = tblProxies.Pro xyID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
Alright! Now that's what I'm talkin' about. Thanks, John.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx x
On Sun, 01 Jul 2007 13:38:35 -0400, John Winterbottom
<jo*****@rogers .cawrote:
>SELECT Recipient into newtable from ( SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID = tblLienHolders .VehicleJobID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID = tblOwners.Owne rID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " & [AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN tblVehicleJo bs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE (tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID()) AND (tblAuth.AuthC atID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID = tblProxies.Pro xyID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID() ) MLH wrote:
>How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID = tblLienHolders .VehicleJobID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblOwners ON tblVehicleJobs. OwnerID = tblOwners.Owne rID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " & [AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN tblVehicleJo bs ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE (tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID()) AND (tblAuth.AuthC atID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM tblVehicleJo bs INNER JOIN tblProxies ON tblVehicleJobs. ProxyID = tblProxies.Pro xyID WHERE tblVehicleJobs .VehicleJobID=G etCurrentVehicl eJobID();
Oops. I might-a-spoke too fast. A97 gives me a syntax error in FROM
clause. Is the SQL A97 compatible?
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxx
On Sun, 01 Jul 2007 19:22:14 -0400, MLH <CR**@NorthStat e.netwrote:
>Alright! Now that's what I'm talkin' about. Thanks, John. xxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xx
On Sun, 01 Jul 2007 13:38:35 -0400, John Winterbottom <jo*****@roger s.cawrote:
>>SELECT Recipient into newtable from ( SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID = tblLienHolder s.VehicleJobID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblOwners ON tblVehicleJobs. OwnerID = tblOwners.Own erID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " & [AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN tblVehicleJob s ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE (tblVehicleJo bs.VehicleJobID =GetCurrentVehi cleJobID()) AND (tblAuth.Auth CatID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblProxies ON tblVehicleJobs. ProxyID = tblProxies.Pr oxyID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID() ) MLH wrote:
>>How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID = tblLienHolder s.VehicleJobID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblOwners ON tblVehicleJobs. OwnerID = tblOwners.Own erID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " & [AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN tblVehicleJob s ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE (tblVehicleJo bs.VehicleJobID =GetCurrentVehi cleJobID()) AND (tblAuth.Auth CatID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblProxies ON tblVehicleJobs. ProxyID = tblProxies.Pr oxyID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
Am having trouble getting Access 97 to accept the suggested syntax.
What's the . UQ; all about, anyway?
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxx
On Sun, 01 Jul 2007 12:58:21 -0700, CD********@Fort uneJames.com wrote:
>On Jul 1, 11:31 am, MLH <C...@NorthStat e.netwrote:
>How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM ...
Note: If you're using A97 try changing John's syntax to:
SELECT Recipient into newtable from [ SELECT ... UNION SELECT ... UNION SELECT ... UNION SELECT ... UNION SELECT ... ]. UQ;
James A. Fortune CD********@For tuneJames.com
What exactly is the dynaset you expect and why do you want to make a table
of that data?
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications re******@pcdata sheet.com
"MLH" <CR**@NorthStat e.netwrote in message
news:tc******** *************** *********@4ax.c om...
Good question. I really don't want to. But I think I must.
When I use the Union query in the query builder and
click the BANG button to run it - it runs fine, returning
the dynaset I expect. But when I use it with DAO, trying
to walk the records returned - it collapses with an error
saying "Undefined function 'GetCurrentVehi cleJobID' in
expression" and I've been unable to get around it. The
SQL is sound but somehow DAO access to it just isn't
working. I could post my attempt, if you like.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxx
On Sun, 01 Jul 2007 16:16:00 GMT, "Steve" <so***@private. emailaddress>
wrote:
>>Why do you want to make a table?
PC Datasheet Providing Customers A Resource For Help With Access, Excel And Word Application s re******@pcda tasheet.com
"MLH" <CR**@NorthStat e.netwrote in message news:e5****** *************** ***********@4ax .com...
>>How can I turn the following into a make-table query?
SELECT [AddnlOwnrFName] & " " & [AddnlOwnrLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblAddnlOwnrs ON tblVehicleJobs. VehicleJobID = tblAddnlOwnrs.V ehicleJobID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT [LienHolderName] AS Recipient FROM tblVehicleJobs INNER JOIN tblLienHolders ON tblVehicleJobs. VehicleJobID = tblLienHolder s.VehicleJobID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT [OwnerFName] & " " & [OwnerLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblOwners ON tblVehicleJobs. OwnerID = tblOwners.Own erID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
UNION SELECT IIf(IsNull([AuthCompany]),[AuthFName] & " " & [AuthLName],[AuthCompany]) AS Recipient FROM tblAuth INNER JOIN tblVehicleJob s ON tblAuth.AuthID = tblVehicleJobs. AuthID WHERE (tblVehicleJo bs.VehicleJobID =GetCurrentVehi cleJobID()) AND (tblAuth.Auth CatID)<>2;
UNION SELECT [ProxyFName] & " " & [ProxyLName] AS Recipient FROM tblVehicleJob s INNER JOIN tblProxies ON tblVehicleJobs. ProxyID = tblProxies.Pr oxyID WHERE tblVehicleJob s.VehicleJobID= GetCurrentVehic leJobID();
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phillip Rhodes |
last post by:
Hi all, I have a question I hope someone can help me with:
I'm doing some communication over a socket, and have need to send
and receive values of type double. I'm doing everything in terms
of single byte reads and writes to the socket, so what I need to do
is take the individual bytes I receive, that represent a double, and
actually turn them into a double. This I'm struggling to figure
out.
I can easily combine the bytes into a...
|
by: Paul E Johnson |
last post by:
Dear friends in C:
I'm completely baffled by this problem I have with
printf statements and conditional operators in C.
I'm using gcc-3.3.
I have a project where the rarely used Union type
is called for! Incredible, but true.
union mixed
|
by: Paul E Johnson |
last post by:
Dear friends in C:
I'm completely baffled by this problem I have with
printf statements and conditional operators in C.
I'm using gcc-3.3.
I have a project where the rarely used Union type
is called for! Incredible, but true.
union mixed
|
by: Denis Pithon |
last post by:
Hi, C lovers!
I stuck on an union problem
Here is snippet of my code
....
/* two pointers of function with repsectively one and two argues */
typedef int (*dce_sn_f)(dce_t*);
|
by: Sean Dolan |
last post by:
typedef struct ntt {
int type;
union {
int i;
char* s;
};
}nt;
nt n;
n.i = 0;
| |
by: Frank van Vugt |
last post by:
Hi all,
Boiling down a problem in one of my queries, I noticed this behaviour.
# select version();
version
------------------------------------------------------------------------
PostgreSQL 7.4.2 on i586-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3
(1 row)
|
by: John Sasso |
last post by:
In my Yacc .y file I defined:
%union {
int value;
struct Symbol Sym;
}
The Symbol struct I defined in a header file I #included in the Prologue
section of the .y file as:
|
by: Johs |
last post by:
I have a source file called project.c. In the same folder I have a
Makefile containing:
CC=gcc
CFLAGS=-g
project: project.c
$(CC) $(CFLAGS) project.c -o project
|
by: Yevgen Muntyan |
last post by:
Hey,
Why is it legal to do
union U {unsigned char u; int a;};
union U u;
u.a = 1;
u.u;
I tried to find it in the standard, but I only found that
|
by: benn686 |
last post by:
I have a structure that contains a union that Id like to initialize at
compile time... something like:
//global declare and initialize
fullStructType var1 = { unionMember.union1.field1 = 100;
unionMember.union1.field2 = 200 };
fullStructType var2 = { { unionMember.union2 = 300 } ,
{ unionMember.union2 = 400 } };
|
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,...
| |
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: 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...
|
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...
|
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: 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...
| |