OPS!!!! concatenate string connection with var

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

OPS!!!! concatenate string connection with var

Post by sal21 »

my open connection string:

Code: Select all

.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
              "Data Source=C:\REPORT_L0928\" & MIO_DB & "_TEST.mdb;Persist Security Info=False"
i need to join MIO_DB var (is dimensioned As String)...

in this case have error:-)

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: OPS!!!! concatenate string connection with var

Post by HansV »

If the value of MIO_DB is for example "Sal21", the data source would be

C:\REPORT_L0928\Sal21_TEST.mdb

Is that what you want?
What is the value of MIO_DB when the error occurs?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4364
Joined: 26 Apr 2010, 17:36

Re: OPS!!!! concatenate string connection with var

Post by sal21 »

HansV wrote:If the value of MIO_DB is for example "Sal21", the data source would be

C:\REPORT_L0928\Sal21_TEST.mdb

Is that what you want?
What is the value of MIO_DB when the error occurs?
wow!!!! TKS

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: OPS!!!! concatenate string connection with var

Post by HansV »

So - has your problem been solved? And if so, how?
Best wishes,
Hans