Click here to Skip to main content
15,913,722 members
Home / Discussions / Database
   

Database

 
AnswerRe: Not able to see the Access database structure behind the form Pin
Jerry Hammond4-Dec-08 6:36
Jerry Hammond4-Dec-08 6:36 
Questionproblem creating database role... Pin
rajkumar.33-Dec-08 22:33
rajkumar.33-Dec-08 22:33 
AnswerRe: problem creating database role... Pin
Wendelius4-Dec-08 3:54
mentorWendelius4-Dec-08 3:54 
QuestionTime out only the first time Pin
samerh3-Dec-08 21:02
samerh3-Dec-08 21:02 
AnswerRe: Time out only the first time Pin
Wendelius4-Dec-08 4:03
mentorWendelius4-Dec-08 4:03 
QuestionNeed to execute a query when postgres service starts Pin
krishnan.s3-Dec-08 20:45
krishnan.s3-Dec-08 20:45 
AnswerRe: Need to execute a query when postgres service starts Pin
Wendelius4-Dec-08 7:06
mentorWendelius4-Dec-08 7:06 
QuestionTo apply a search on every table in a database Pin
rahuladya3-Dec-08 19:49
rahuladya3-Dec-08 19:49 
AnswerRe: To apply a search on every table in a database Pin
Ashfield3-Dec-08 21:09
Ashfield3-Dec-08 21:09 
GeneralRe: To apply a search on every table in a database Pin
rahuladya4-Dec-08 6:29
rahuladya4-Dec-08 6:29 
GeneralRe: To apply a search on every table in a database Pin
Ashfield4-Dec-08 9:18
Ashfield4-Dec-08 9:18 
GeneralRe: To apply a search on every table in a database Pin
rahuladya4-Dec-08 20:55
rahuladya4-Dec-08 20:55 
GeneralRe: To apply a search on every table in a database Pin
Mycroft Holmes4-Dec-08 21:54
professionalMycroft Holmes4-Dec-08 21:54 
QuestionReporting Services and multiple connection strings Pin
gantww3-Dec-08 11:20
gantww3-Dec-08 11:20 
AnswerRe: Reporting Services and multiple connection strings Pin
moon_stick3-Dec-08 22:48
moon_stick3-Dec-08 22:48 
AnswerRe: Reporting Services and multiple connection strings Pin
Mycroft Holmes4-Dec-08 21:58
professionalMycroft Holmes4-Dec-08 21:58 
QuestionQuery Pin
CodingYoshi3-Dec-08 9:15
CodingYoshi3-Dec-08 9:15 
AnswerRe: Query Pin
Wendelius3-Dec-08 9:32
mentorWendelius3-Dec-08 9:32 
QuestionAccommodating an apostrophe in SQL... [modified] Pin
new_phoenix3-Dec-08 5:24
new_phoenix3-Dec-08 5:24 
I need some assistance in accommodating an apostrophe in an SQL statement using VBA in MS Access. Please help.

<br />
strSQLHyperion = "SELECT [COUNTRY], [TYPE], [BUSINESS_UNIT], " & _<br />
   "[ALT_GROUPING], [PERSONNEL_AREA], [L_R_G], [REGION], [JOB_FUNCTION], " & _<br />
   "[PRIMARY_KEY] FROM [TBLHYPERION] " & _<br />
   "WHERE [COUNTRY]='" & UCase(rstInputFile![COUNTRY]) & "' " & _<br />
   "AND [TYPE]='" & UCase(rstInputFile![Type]) & "' " & _<br />
   "AND [BUSINESS_UNIT]='" & UCase(rstInputFile![BUSINESS_UNIT]) & "' " & _<br />
   "AND [ALT_GROUPING]='" & UCase(rstInputFile![ALT_GROUPING]) & "' " & _<br />
   "AND [PERSONNEL_AREA]='" & UCase(rstInputFile![PERSONNEL_AREA]) & "' " & _<br />
   "AND [L_R_G]='" & UCase(rstInputFile![L_R_G]) & "' " & _<br />
   "AND [REGION]='" & UCase(rstInputFile![REGION]) & "' " & _<br />
   "AND [JOB_FUNCTION]='" & UCase(rstInputFile![JOB_FUNCTION]) & "'"<br />


What do I need to do to prevent it from hanging up on the apostrophe? The apostrophe needs to be accepted in:

<br />
"AND [JOB_FUNCTION]='" & UCase(rstInputFile![JOB_FUNCTION]) & "'" <br />


Confused | :confused: Confused | :confused: Confused | :confused:

modified on Wednesday, December 3, 2008 11:31 AM

AnswerRe: Accommodating an apostrophe in SQL... Pin
Jay Royall3-Dec-08 5:41
Jay Royall3-Dec-08 5:41 
GeneralRe: Accommodating an apostrophe in SQL... Pin
new_phoenix3-Dec-08 6:03
new_phoenix3-Dec-08 6:03 
GeneralRe: Accommodating an apostrophe in SQL... Pin
Jay Royall3-Dec-08 6:12
Jay Royall3-Dec-08 6:12 
GeneralRe: Accommodating an apostrophe in SQL... Pin
new_phoenix3-Dec-08 6:30
new_phoenix3-Dec-08 6:30 
AnswerRe: Accommodating an apostrophe in SQL... Pin
Wendelius3-Dec-08 6:51
mentorWendelius3-Dec-08 6:51 
QuestionMSSQL : getting data from few tables Pin
benjamin yap3-Dec-08 1:41
benjamin yap3-Dec-08 1:41 

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.