On Thu, 15 Apr 2004 20:14:33 GMT, "PC Datasheet" <spam@nospam.spam>
wrote:
[color=blue]
>"Denis" <pound83@hotmail.com> wrote in message
>news:89ed8fde.0404151150.7dde0b05@posting.google. com...[color=green]
>> I am trying to launch an .mdb file via javascript. I do not need to
>> do anything but open the application. It is able to open the
>> application but for some reason it opens and then closes. At first I
>> thought it may be a permission problem as far as writing the .ldb file
>> to disk, but I added every single user and gave them write permissions
>> to the folder and there is still no change.
>> Has anyone been able to get this to work?
>>
>> Thanks in advance.
>>
>> My code;
>>
>> var AccessApp = new ActiveXObject("Access.Application.10");
>> AccessApp.Visible = true;
>> AccessApp.OpenCurrentDatabase("c:\\case\\case.mdb" );[/color][/color]
[color=blue]
>Denis,
>
>Just curious ----
>
>("c:\\case\\case.mdb")
>
>Why the double backslashes??
>
>Steve
>PC Datasheet[/color]
\ is the escape character in JScript strings and regular expressions.
IOW the character that follows the \ is treated as a literal character
and loses any special meaning it has (if any).
Regards,
Steve
--
Please post questions to the newsgroup; everyone benefits.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to
http://www.microsoft.com/info/cpyright.htm