Re: Same Columns Different Queries
- From: "DS" <bootybox@xxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2007 08:34:02 -0500
I came up with this which I think is in the right direction but it still
doesn't return data.
With Me.ListAccounts
.RowSource = "SELECT tblPayName.PayNameID, tblPayName.PayName,
tblPayName.PayAppliedCOA " & _
"FROM tblPayName " & _
"ORDER BY tblPayName.PayName UNION " & _
"SELECT tblPayTypes.PayTypeID, tblPayTypes.PayTypeName,
tblPayTypes.PayTypeCOA " & _
"FROM tblPayTypes " & _
"ORDER BY tblPayTypes.PayTypeName;"
.ColumnCount = 3
.ColumnWidths = "0in;2 in;.5 in"
.Requery
End With
Thanks
DS
"DS" <bootybox@xxxxxxxxxxxxx> wrote in message
news:zWIVh.604$ru1.465@xxxxxxxxxxxxxxx
I have 2 different queries that I need to combine (perhaps) into one. The
problem is I need to have the data go to the same columns. Such as...
ID Name Account Number
Query 1
ID
Name
Account
Query 2
ID
Name
Account
As you can see they both have the same field names but different info.
Any help is appreciated.
Thanks
DS
.
- Follow-Ups:
- Re: Same Columns Different Queries
- From: DS
- Re: Same Columns Different Queries
- References:
- Same Columns Different Queries
- From: DS
- Same Columns Different Queries
- Prev by Date: RE: 438 - Object doesn't support this property or method
- Next by Date: Possible SetFocus?
- Previous by thread: Re: Same Columns Different Queries
- Next by thread: Re: Same Columns Different Queries
- Index(es):