Click here to Skip to main content
15,888,521 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: MSSQL : getting data from few tables Pin
Ben Fair3-Dec-08 3:49
Ben Fair3-Dec-08 3:49 
GeneralRe: MSSQL : getting data from few tables [modified] Pin
benjamin yap3-Dec-08 4:13
benjamin yap3-Dec-08 4:13 
GeneralRe: MSSQL : getting data from few tables Pin
Ben Fair3-Dec-08 5:04
Ben Fair3-Dec-08 5:04 
QuestionHow can I store PDB files? Pin
harcaype3-Dec-08 1:00
harcaype3-Dec-08 1:00 
AnswerRe: How can I store PDB files? Pin
Jay Royall3-Dec-08 1:19
Jay Royall3-Dec-08 1:19 
AnswerRe: How can I store PDB files? Pin
Giorgi Dalakishvili3-Dec-08 4:35
mentorGiorgi Dalakishvili3-Dec-08 4:35 
QuestionInsert before update -the first data- in a historical table Pin
foryou3-Dec-08 0:11
foryou3-Dec-08 0:11 
AnswerRe: Insert before update -the first data- in a historical table Pin
Blue_Boy3-Dec-08 0:21
Blue_Boy3-Dec-08 0:21 
GeneralRe: Insert before update -the first data- in a historical table Pin
foryou3-Dec-08 0:50
foryou3-Dec-08 0:50 
GeneralRe: Insert before update -the first data- in a historical table Pin
Blue_Boy3-Dec-08 0:57
Blue_Boy3-Dec-08 0:57 
GeneralRe: Insert before update -the first data- in a historical table Pin
foryou3-Dec-08 1:22
foryou3-Dec-08 1:22 

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.