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

Search results for query: *

  • Users: logge
  • Order by date
  1. logge

    Random sorting in a recordset

    Hi! Does anyone know how to randomly sort records in a CRecordSet class? (Connected to an Access database) I heard that the following should work: m_pSet->m_strSort = "RND()"; m_pSet->Requery(); But all I get is an error that says RND is undefined. Is there another way? Thanks...
  2. logge

    Writing to the printerport

    Hi! I'm not writing a printer driver. I have a small microproccessor controlling a mixer, that I want to be able to send commands to. The communication with the processor is very simple. All I would need to do is to write binary values to the printerport. Right now the mixer is controlled...
  3. logge

    Writing to the printerport

    Hi! Does anyone know how to write data to the printerport in windows 2000? It does not seem to allow direct access, so there has to be another way? Thanks, Peter Logarn
  4. logge

    How to use ' in a query???

    Sorry, it does not work. It just says "Syntax error in string in query expression 'TYPE = Peter's file.txt ORDER BY ID'. Peter
  5. logge

    How to use ' in a query???

    Sure! If I try to do something like this: m_pSet->m_strFilter = "TYPE = 'Peter's file.txt'"; m_pSet->Requery(); I get an exception when I do the Requery() call, saying something about a invalid query. m_pSet is from a CRecordSet derived class. I hope this will help.
  6. logge

    How to use ' in a query???

    Hi! I have a database containing filenames, and some of them uses the ' character. (ex. "peter's file.txt") I'm using a MFC recordset to connect to the database. Problem is that when I want to filter records Access don't like strings with ' at all, since it thinks this is the end of...

Part and Inventory Search

Back
Top