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...
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...
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
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.
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.