Click here to Skip to main content
15,847,903 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SHGetSpecialFolderLocation Pin
Don Box11-Jul-06 22:23
Don Box11-Jul-06 22:23 
GeneralRe: SHGetSpecialFolderLocation Pin
Maxime Labelle11-Jul-06 22:54
Maxime Labelle11-Jul-06 22:54 
AnswerRe: SHGetSpecialFolderLocation Pin
Jonas Hammarberg11-Jul-06 22:29
professionalJonas Hammarberg11-Jul-06 22:29 
GeneralRe: SHGetSpecialFolderLocation Pin
Maxime Labelle11-Jul-06 22:53
Maxime Labelle11-Jul-06 22:53 
GeneralRe: SHGetSpecialFolderLocation [modified] Pin
Jonas Hammarberg11-Jul-06 23:20
professionalJonas Hammarberg11-Jul-06 23:20 
GeneralRe: SHGetSpecialFolderLocation Pin
Maxime Labelle12-Jul-06 4:36
Maxime Labelle12-Jul-06 4:36 
QuestionDifficult to understand PrintPreview without Doc/View Pin
mikobi11-Jul-06 21:15
mikobi11-Jul-06 21:15 
QuestionSELECT * FROM - Tablename which has spaces Pin
Tara1411-Jul-06 21:09
Tara1411-Jul-06 21:09 
Hi,

In my vc++ application I am using Access as the database(connected using DAO). The database and tables are created during runtime.

I name the table depending upon the name the user enters. Now the problem is that if he enters a name with spaces, an errors occurs because of the SELECT sql
Say the name is : tara m

SELECT * FROM tara m


causes an error 'Syntax error in FROM clause'

But the table gets created with the correct name.
I tried putting the table name bet ' ', but it says "wrong formating in querry"

Would you be knowing the right way of doing this. Or I must ask the user to type the name without spaces?


Thanks.


Fortitudine Vincimus!

AnswerRe: SELECT * FROM - Tablename which has spaces Pin
Steve Echols11-Jul-06 21:35
Steve Echols11-Jul-06 21:35 
GeneralRe: SELECT * FROM - Tablename which has spaces Pin
Tara1411-Jul-06 21:43
Tara1411-Jul-06 21:43 
GeneralRe: SELECT * FROM - Tablename which has spaces Pin
Tara1411-Jul-06 21:50
Tara1411-Jul-06 21:50 
AnswerRe: SELECT * FROM - Tablename which has spaces Pin
toxcct11-Jul-06 22:14
toxcct11-Jul-06 22:14 
QuestionOwner Draw Pin
Try11-Jul-06 20:56
Try11-Jul-06 20:56 
AnswerRe: Owner Draw Pin
led mike11-Jul-06 21:11
led mike11-Jul-06 21:11 
GeneralRe: Owner Draw Pin
Code_Zombie11-Jul-06 21:25
Code_Zombie11-Jul-06 21:25 
AnswerRe: Owner Draw Pin
Hamid_RT12-Jul-06 0:10
Hamid_RT12-Jul-06 0:10 
QuestionProblem with STL Pin
Super Lloyd11-Jul-06 20:28
Super Lloyd11-Jul-06 20:28 
AnswerRe: Problem with STL Pin
Steve Echols11-Jul-06 20:40
Steve Echols11-Jul-06 20:40 
GeneralRe: Problem with STL [modified] Pin
Super Lloyd11-Jul-06 20:50
Super Lloyd11-Jul-06 20:50 
GeneralRe: Problem with STL Pin
Steve Echols11-Jul-06 21:48
Steve Echols11-Jul-06 21:48 
AnswerRe: Problem with STL Pin
Super Lloyd11-Jul-06 20:50
Super Lloyd11-Jul-06 20:50 
GeneralRe: Problem with STL [modified] Pin
Super Lloyd11-Jul-06 21:14
Super Lloyd11-Jul-06 21:14 
AnswerRe: Problem with STL [modified] Pin
Stephen Hewitt11-Jul-06 21:55
Stephen Hewitt11-Jul-06 21:55 
GeneralRe: Problem with STL Pin
Super Lloyd11-Jul-06 22:02
Super Lloyd11-Jul-06 22:02 
GeneralRe: Problem with STL Pin
Stephen Hewitt11-Jul-06 22:15
Stephen Hewitt11-Jul-06 22:15 

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.