in reply to Re: Problem to open form in Access
in thread Problem to open form in Access

thanks for advices.

1. i do 'warn' instead of 'die' because i want access to close normally, further lines later.

2. the form 'formulaire1' is inside access so i can't imagine the path for it. i try ./formulaire1 and obtain :

OLE exception from "<Unknown Source>": Le nom de formulaire './Formulaire1' entré dans la feuille des propriétés ou dans une macro est mal orthographié ou fait référence à un formulaire inexistant. Win32::OLE(0.1709) error 0x800a0836 in METHOD/PROPERTYGET "OpenForm" at lancer_TU_version14.pl line 1312 Impossible d'ouvrir le formulaire:No such file or directory

obviously, if i search for it, i didn't find the form 'formulaire1' in the OS files.

Replies are listed 'Best First'.
Re^3: Problem to open form in Access
by x-lours (Sexton) on Jul 03, 2012 at 14:58 UTC
    i added my $var = <STDIN>; to see my messages, and i discover that the form was open !!!

    i try to get the value of the $access_obj->DoCmd->OpenForm('Formulaire1'); it is null (undef). that is why i get the warning message ...

    so the post can be closed. (how ?)

    Access application doesn't return a value for this call, and a 'action to wait' is needed.