Hello everybody, i try to open a form in Access by using Win32::OLE. here is my code :
$access_obj = Win32::OLE->new('Access.Application') or die "utilisatio
+n_ACCESS:Oops, cannot start Access";
$access_obj->OpenCurrentDatabase($source_access) ;
$access_obj->{'Visible'} = 1;
# ouverture du formulaire de l'ACCESS
$access_obj->DoCmd->OpenForm('Formulaire1') or warn "Impossible d'ouvr
+ir le formulaire:$!\n";
# fermeture de l'ACCESS
$access_obj->Quit();
i copy it from "http://www.perlmonks.org/?node_id=762359" but i get the message "Impossible d'ouvrir le formulaire:No such file or directory" ! (the warning) and can't explain why. the name is correct. i try to replace ' by " and it does the same ... any help please ? ;-)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|