krisbrixon
Programmer
I usually use SQL Server, but for this application I need to use Access and I have not used Access in over four years.
I am creating a large SQL statement, but is not returning the results like I think it should. I have narrowed the problem down to a simple SQL statement and I wanted to see if I am missing something here.
SELECT ' T: '+AcctType+
' P1: '+AcctPhone1+
' P2: '+AcctPhone2+
' DL: '+AcctDLNum+
' SSN: '+AcctSSN As [MiscInfo]
FROM tblAccount;
What is happening is if any of the fields are null for a record then the entire field will be blank (null?).
i.e. If all the fields are filled in then I will receive something like:
T: Com P1: 555-555-5555 P2:555-555-5555 DL:598648 SSN:555
If any of the fields are null then I get a blank record.
Any Ideas?
Thanks,
Kris
I am creating a large SQL statement, but is not returning the results like I think it should. I have narrowed the problem down to a simple SQL statement and I wanted to see if I am missing something here.
SELECT ' T: '+AcctType+
' P1: '+AcctPhone1+
' P2: '+AcctPhone2+
' DL: '+AcctDLNum+
' SSN: '+AcctSSN As [MiscInfo]
FROM tblAccount;
What is happening is if any of the fields are null for a record then the entire field will be blank (null?).
i.e. If all the fields are filled in then I will receive something like:
T: Com P1: 555-555-5555 P2:555-555-5555 DL:598648 SSN:555
If any of the fields are null then I get a blank record.
Any Ideas?
Thanks,
Kris