dbTalk Databases Forums  

Syntax

comp.databases.ms-access comp.databases.ms-access


Discuss Syntax in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bsn
 
Posts: n/a

Default Syntax - 01-26-2011 , 08:02 AM






Hi NG

I need a little help with syntax in Access Runtime 2010...
I want to use Inveron variable to set a Reg.Key(Trusted Location)...

The environ variable %LOCALAPPDATA% remains on my laptop...

I want to create a Trusted Location. I tried these two scriptlines - but
with no luck...

%LOCALAPPDATA%\MyFolder\ - not working
[LOCALAPPDATA]\MyFolder\ - not working

It should end up with :
C:\Users\Bjarne\AppData\Local\MyFolder\

Help needed please...
Bjarne

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Syntax - 01-26-2011 , 07:42 PM






bsn wrote:
Quote:
Hi NG

I need a little help with syntax in Access Runtime 2010...
I want to use Inveron variable to set a Reg.Key(Trusted Location)...

The environ variable %LOCALAPPDATA% remains on my laptop...

I want to create a Trusted Location. I tried these two scriptlines - but
with no luck...

%LOCALAPPDATA%\MyFolder\ - not working
[LOCALAPPDATA]\MyFolder\ - not working

It should end up with :
C:\Users\Bjarne\AppData\Local\MyFolder\

Help needed please...
Bjarne
If I enter in the immediate window
? environ("temp")
I get the value of the Temp environment variable

Reply With Quote
  #3  
Old   
bsn
 
Posts: n/a

Default Re: Syntax - 01-27-2011 , 12:20 AM



Quote:
I need a little help with syntax in Access Runtime 2010...
I want to use Inveron variable to set a Reg.Key(Trusted Location)...

The environ variable %LOCALAPPDATA% remains on my laptop...

I want to create a Trusted Location. I tried these two scriptlines - but
with no luck...

%LOCALAPPDATA%\MyFolder\ - not working
[LOCALAPPDATA]\MyFolder\ - not working

It should end up with :
C:\Users\Bjarne\AppData\Local\MyFolder\

Help needed please...
Bjarne

If I enter in the immediate window
? environ("temp")
I get the value of the Temp environment variable
T u for answer...
I can to get all my environ variables in vba code...but...
What i need is what i have to hardcode in Access Runtime 2010...
Bjarne

Reply With Quote
  #4  
Old   
Salad
 
Posts: n/a

Default Re: Syntax - 01-27-2011 , 09:50 AM



bsn wrote:
Quote:
I need a little help with syntax in Access Runtime 2010...
I want to use Inveron variable to set a Reg.Key(Trusted Location)...

The environ variable %LOCALAPPDATA% remains on my laptop...

I want to create a Trusted Location. I tried these two scriptlines -
but with no luck...

%LOCALAPPDATA%\MyFolder\ - not working
[LOCALAPPDATA]\MyFolder\ - not working

It should end up with :
C:\Users\Bjarne\AppData\Local\MyFolder\

Help needed please...
Bjarne


If I enter in the immediate window
? environ("temp")
I get the value of the Temp environment variable


T u for answer...
I can to get all my environ variables in vba code...but...
What i need is what i have to hardcode in Access Runtime 2010...
Bjarne
I did not understand your above response.

If all people have the same folder paths...
Function RetLocal() As String
Dim strUser As String
RetLocal = Environ("UserName")
If RetLocal > "" Then
RetLocal = "C:\Users\" & RetLocal & "\AppData\Local\MyFolder\"
Else
RetLocal = ""
End If
End Function

If I enter from the immediate window
? RetLocal()
it returns
C:\Users\Salad\AppData\Local\MyFolder\

Reply With Quote
  #5  
Old   
bsn
 
Posts: n/a

Default Re: Syntax - 01-27-2011 , 08:09 PM



"Salad" skrev
bsn wrote:
Quote:
I need a little help with syntax in Access Runtime 2010...
I want to use Inveron variable to set a Reg.Key(Trusted Location)...

The environ variable %LOCALAPPDATA% remains on my laptop...

I want to create a Trusted Location. I tried these two scriptlines - but
with no luck...

%LOCALAPPDATA%\MyFolder\ - not working
[LOCALAPPDATA]\MyFolder\ - not working

It should end up with :
C:\Users\Bjarne\AppData\Local\MyFolder\

Help needed please...
Bjarne


If I enter in the immediate window
? environ("temp")
I get the value of the Temp environment variable


T u for answer...
I can to get all my environ variables in vba code...but...
What i need is what i have to hardcode in Access Runtime 2010...
Bjarne
I did not understand your above response.
-------------------------------
Sorry
I have to hardcode an environ variable(Registry key), in the Packet
Wizard...
And I dont know the syntax, as described before...
SNIP

Bjarne

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.