Technical Forum

SIMATIC WinCC flexible

SQL Wincc Flex compare to text

Thread Starter: MVSeat   Started: 6/28/2012 10:06 AM   Replies: 0

« Previous thread Next thread »
Page 1 of 1 (1 items)
  6/28/2012, 10:06 AM
Joined 3/21/2011
Last visit: 6/28/2012
Posts: 7
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Hello,
Ik have a big problem in my wincc flexible application.
We run wincc flexible advanced on the pc V2008 sp3.

On the siemens website in found some examples of SQL communication over ODBC. I do use a Microsoft access database instead of the one they use in the examples.

Anyhow all communication works over ODBC as long i compare integers or time and data in my WHERE statement.

My problem: Now i need to compare a string in WinCC flex to the data in the database. The data in the data base is text 255 chars. Whatever i try i dont get it to work.

My Code that is not working:


I also tried Chr(39) and also with just ' " & strMachine & " '

Wincc gives an error but does not define what is wrong. I only know that the selection works the not the part after WHERE.

Anyone know how to compare a string to text in WinCC flex




=== Edited by MVSeat @ 6/28/2012 10:07 AM [GMT ] ===


Top
Page 1 of 1 (1 items)
Actions