Skip to main content
Inspiring
November 1, 2007
Question

Little urgent -Ms access, instr

  • November 1, 2007
  • 6 replies
  • 947 views
I dont want those Disp selected from access db...I am getting an error..How will I do that ?
Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "49, 50"]'

/drv_sch/Generate_Sch.asp, line 55
----------------------------------------
Driver_id is a number...Disp variable has these data "49, 50, 51"
SELECT * FROM schedule WHERE not instr('Disp',driver_id)
This topic has been closed for replies.

6 replies

emmim44Author
Inspiring
November 1, 2007
same db logic...I am not posting any CF code guys...Opps...dont hate me...:D
November 1, 2007
Haha, I just noticed the "drv_sch/Generate_Sch.asp, line 55." Perhaps it's just a case of ColdFusion envy?
Inspiring
November 1, 2007
> Perhaps it's just a case of ColdFusion envy?

Shhhh! (They get touchy when you mention that ;-)
emmim44Author
Inspiring
November 1, 2007
Thank u dudess..
November 1, 2007
Try this:

SELECT * FROM schedule
WHERE driverId NOT IN (<cfqueryparam cfsqltype="cf_sql_integer" value="#disp#" list="true" />)

That will handle qualifiers for you as long as your #disp# variable is a comma separated list of integers.
Inspiring
November 1, 2007
emmim44 - Any particular reason you're posting ASP questions in a ColdFusion forum?

emmim44Author
Inspiring
November 1, 2007
I am getting same error..Those values are coming from multi select drop down box...

Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "49, 50"]'

/drv_sch/Generate_Sch.asp, line 55
Inspiring
November 1, 2007
select * from schedule where driver_id not in (#disp#)