> Hi,
> you can open a recordset, based on pass-through query, then rst(0) will
> return result of "select SYSTEM_USER"
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
>
http://alexdyb.blogspot.com>
http://www.PointLtd.com>
> "nycdon" <nycdon[ at ]discussions.microsoft.com> wrote in message
> news:8F9F57D6-FF64-4B19-B82B-58C4A36C733A[ at ]microsoft.com...
> > Thanks Alex...how could I get the result of the Pass-thru into a VBA
> > variable?
> >
> > "Alex Dybenko" wrote:
> >
> >> hi,
> >> ok, then you are using windows authentication, so you can get window
> >> login
> >> name using API:
> >>
http://www.mvps.org/access/api/api0008.htm> >> or using pass-through query against SQL server with SQL:
> >> select SYSTEM_USER
> >>
> >> --
> >> Best regards,
> >> ___________
> >> Alex Dybenko (MVP)
> >>
http://alexdyb.blogspot.com> >>
http://www.PointLtd.com> >>
> >>
> >> "nycdon" <nycdon[ at ]discussions.microsoft.com> wrote in message
> >> news:A9BDD90A-A3F1-4BE5-AAB2-0CDB94054144[ at ]microsoft.com...
> >> >
> >> > I didn't seem to get the User login name with that..
> >> >
> >> > "Alex Dybenko" wrote:
> >> >
> >> >> Hi,
> >> >> you can use .Connect property of a linked table:
> >> >>
> >> >> ?CurrentDB.TableDefs("MyTable").Connect
> >> >>
> >> >> and then parse it
> >> >>
> >> >> --
> >> >> Best regards,
> >> >> ___________
> >> >> Alex Dybenko (MVP)
> >> >>
http://alexdyb.blogspot.com> >> >>
http://www.PointLtd.com> >> >>
> >> >>
> >> >> "nycdon" <nycdon[ at ]discussions.microsoft.com> wrote in message
> >> >> news:B1542807-E4BD-4287-923B-2FD742B8BD8F[ at ]microsoft.com...
> >> >> > how can i obtain in linked A2000 database, the sql server login name
> >> >> > for
> >> >> > an
> >> >> > audit trail?
> >> >> > thanks!
> >> >>
> >> >>
> >>
> >>
>
>