All,
Thanks in advance for the help.
Problem is: I have a union query that merges 3 separate prior queries. Each of the 3 has slightly different data (data type fields), so I have to create some null or blank fields for the mis-matched fields. Like this (shorthand using Null as an example):
Select
Account number,
Value1,
Null as Value2,
Null as Value3
From Table1;
Union all
Select
Account number,
Null as Value1,
Value2,
Null as Value3
From Table2;
Union All
Select
Account number,
Null as Value1,
Null as Value2,
Value3
From Table3;
Problem is: I need the value fields to remain in number format so I can add them in later queries. I cannot plug zeros in the missing fields (e.g. 0 as Value1) because a 0 would look like a real value and would corrupt the data in this project. I need more like a Null or "", but these give me data type mismatched errors in later steps when I try to sum the Value fields.
Thoughts?:banghead:
Thanks in advance for the help.
Problem is: I have a union query that merges 3 separate prior queries. Each of the 3 has slightly different data (data type fields), so I have to create some null or blank fields for the mis-matched fields. Like this (shorthand using Null as an example):
Select
Account number,
Value1,
Null as Value2,
Null as Value3
From Table1;
Union all
Select
Account number,
Null as Value1,
Value2,
Null as Value3
From Table2;
Union All
Select
Account number,
Null as Value1,
Null as Value2,
Value3
From Table3;
Problem is: I need the value fields to remain in number format so I can add them in later queries. I cannot plug zeros in the missing fields (e.g. 0 as Value1) because a 0 would look like a real value and would corrupt the data in this project. I need more like a Null or "", but these give me data type mismatched errors in later steps when I try to sum the Value fields.
Thoughts?:banghead: