Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Type Mismatch

Status
Not open for further replies.

lars7

Technical User
Aug 16, 2005
817
GB
Hi there,
Can anyone see why I'm getting a "type Mismatch" in my Query.

strsql = "SELECT tbltruststaff.trust, tbltruststaff.DIV, tbltruststaff.DISCIPLINE, tbltruststaff.PAYNO, [surname] & ',' & [forename] AS Employee, tbltruststaff.LOCATION, tbltruststaff.GRADE, [jdCodeno] & IIf(IsNull([jdadditno]),""," / " & [jdadditno]) AS CODE, tbltruststaff.FWDFORMATCH AS Weekending FROM tbltruststaff "
 


Hi Lespaul,
[jdadditno] is a number field.
 
Hi Again,
Yes your right it's that one thats causing the problem, I removed it and it worked ok. Is there an other way of doing that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top