Click here to Skip to main content
15,907,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExplorer FolderView Pin
TusharKarsan19-Nov-01 5:07
TusharKarsan19-Nov-01 5:07 
QuestionWTL FormView: Where are the scrollbars? Pin
TusharKarsan19-Nov-01 4:37
TusharKarsan19-Nov-01 4:37 
GeneralUnsuported operations Pin
19-Nov-01 4:34
suss19-Nov-01 4:34 
GeneralRe: Unsuported operations Pin
moliate19-Nov-01 7:59
moliate19-Nov-01 7:59 
QuestionHow to get CD-ROM Manufacturer string? Pin
Rui Lopes19-Nov-01 4:19
Rui Lopes19-Nov-01 4:19 
GeneralPrinting Pin
mazy19-Nov-01 3:57
mazy19-Nov-01 3:57 
GeneralWhy I can't get record from database Pin
white jungle19-Nov-01 2:07
white jungle19-Nov-01 2:07 
GeneralRe: Why I can't get record from database Pin
Carlos Antollini19-Nov-01 2:16
Carlos Antollini19-Nov-01 2:16 
Your problem is in the Filter...

See the following
rs.m_strFilter="user="+username+" and password="+userpassword;


This must be
rs.m_strFilter="user=\""+username+"\" and password=\""+userpassword + " \"";
You forgot the quotes in your sentence.
The Filter is the where in a SQL sentences. User and userpassword fields are char, is for this that the value that are you looking for must be between quotes.

Best Regards....
Green Alien | [Alien] Puff Today is Monday....



Carlos Antollini.
GeneralRe: Why I can't get record from database Pin
white jungle19-Nov-01 2:27
white jungle19-Nov-01 2:27 
GeneralRe: Why I can't get record from database Pin
Joel Lucsy19-Nov-01 3:04
Joel Lucsy19-Nov-01 3:04 
GeneralMFC and DLL... Pin
19-Nov-01 0:45
suss19-Nov-01 0:45 
GeneralRe: MFC and DLL... Pin
Cathy19-Nov-01 11:58
Cathy19-Nov-01 11:58 
GeneralAnti-Alias Pin
19-Nov-01 0:41
suss19-Nov-01 0:41 
GeneralRe: Anti-Alias Pin
Rui Lopes19-Nov-01 4:23
Rui Lopes19-Nov-01 4:23 
GeneralCTreeCtrl Pin
19-Nov-01 0:37
suss19-Nov-01 0:37 
GeneralRe: CTreeCtrl Pin
Joel Lucsy19-Nov-01 3:09
Joel Lucsy19-Nov-01 3:09 
GeneralRe: CTreeCtrl Pin
Shog920-Nov-01 12:22
sitebuilderShog920-Nov-01 12:22 
GeneralODBC OS Specific error Pin
Deian19-Nov-01 0:34
Deian19-Nov-01 0:34 
GeneralRe: ODBC OS Specific error Pin
Alvaro Mendez19-Nov-01 10:54
Alvaro Mendez19-Nov-01 10:54 
GeneralRe: ODBC OS Specific error Pin
Deian19-Nov-01 23:04
Deian19-Nov-01 23:04 
Generalmemory leaks Pin
luckylourson18-Nov-01 23:22
luckylourson18-Nov-01 23:22 
GeneralRe: memory leaks Pin
Bernhard19-Nov-01 3:08
Bernhard19-Nov-01 3:08 
GeneralRe: memory leaks Pin
Alvaro Mendez19-Nov-01 11:09
Alvaro Mendez19-Nov-01 11:09 
GeneralRe: memory leaks Pin
Derek Waters19-Nov-01 14:13
Derek Waters19-Nov-01 14:13 
GeneralRe: memory leaks Pin
Bernhard19-Nov-01 19:21
Bernhard19-Nov-01 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.