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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining two tables w/ Seleciton Formula

Status
Not open for further replies.

B1naryPro

IS-IT--Management
Jan 20, 2002
114
0
0
US
I am using a Selection Formula in Visual basic, trying to concatenate two tables from sql server, but i am getting a run time error '13' type mismatch. here is the selection formula.

rptFollowUp.SelectionFormula = "{CAO.DateReceived} in Date(" & Left(strControl, 4) & "," & Mid(strControl, 5, 2) & "," & Right(strControl, 2) & ") to Date(" & Left(strControl2, 4) & ", " & Mid(strControl2, 5, 2) & "," & Right(strControl2, 2) & ")" And "{CaoActions.FollowCheck}= x"

if i take out the And "{caoactions.Followcheck=x", it works fine, so it looks to have a problem with the second table.

please help, appreciate it

JPBinary
MCSE, MCSA
 
What data type is it? Does it match the data type of "x"

Madawc Williams
East Anglia, Great Britain
 
it is a char data type.

JPBinary
MCSE, MCSA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top