Hendra
The easiest way I know is to create a DSN file and use the builder button in the properties box to select it as the connection string. It doesn't actually use the DSN file. It just copies the parameters.
A typical connection string to a SQL Server database using windows Authentication would look like this:
ODBC;DRIVER=SQL Server;SERVER=InstanceNameGoesHere;DATABASE=DBNameGoesHere;Trusted_Connection=Yes
Regards,
Bill Mosca, Founder - MS_Access_Professionals
http://www.thatlldoit.com
Microsoft Office Access MVP
https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E
My nothing-to-do-with-Access blog
http://wrmosca.wordpress.com
--- In MS_Access_Professionals@yahoogroups.com, "agesthahendra@..." <agesthahendra@...> wrote:
>
> Hi Everyone,...
>
> I'm trying to write VBA to make a PTQ but with no DSN in the syntax but
> using Connection string since connection string don't require a DSN.
> Any example to do this would be appreciated...thank you.
>
> Regards
> Hendra
>
Jumat, 03 Agustus 2012
[MS_AccessPros] Re: vba to make Pass through Queries (with no DSN)
__._,_.___
.
__,_._,___
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar