1

I have created microsoft query data connection which links to another spreadheet. In my sql query I need to filter out the lines that does not bellong to that user. To do so i am using where clouse and i need to compare the field to the current username. I have tried USER(), system.user(), current_user, system_user ... Nothing seems to work.

Also, anyone knows what language does microsoft query use? Is it a language on its own?

Laura Ruby
  • 61
  • 1
  • 1
  • 3

1 Answers1

0

I hope this will work for you

Environ("USERNAME")

This should return username at least in VBA

Poof
  • 169
  • 5