I have worked with databases with m_strFilter variable and it works nice, but now I need to open a database table, with a complete SQL query. I suppose I have to do this by passing the sql string in Open() function. Can somebody give a little code for this!