theshadow3d
07-30-2007, 07:33 AM
I have a program thats work perfectly in some computers useing the network but when i try to open it in other computers i get an error and when i try to debug the error it highlit the line that i am calling the micro that open the mainform in it, i hope some one have an idea for what is going on with the program
Rabbie
07-30-2007, 07:36 AM
It would be helpful if you could let us know the exact error message. IS it possible that some of the computers don't have the right path set up.
theshadow3d
07-30-2007, 07:42 AM
It would be helpful if you could let us know the exact error message. IS it possible that some of the computers don't have the right path set up.
i checked the path and it was fine and the error is not clear it first give me a popup window shows that it cant find the macro and after i debug it and close the vb code windows it give me error #2803 and i could not find any answer about it
Rabbie
07-30-2007, 08:01 AM
Using debug.print err.description(2803) in the immediate window I got the message that the error meant "Wrong number of arguments or wrong property assignment"
theshadow3d
07-30-2007, 08:04 AM
Using debug.print err.description(2803) in the immediate window I got the message that the error meant "Wrong number of arguments or wrong property assignment"
Do you know how to fix this problem ? i am thinking to install access2000 in thies computer willl this fix the problem ?
The_Doc_Man
07-30-2007, 08:23 AM
When opening a form through a macro, you need to supply some parameters regarding the mode of opening because you aren't using the GUI (to select the mode such as Forms, Design, or Datasheet).
Show us the exact macro line on which you get the error and attach a screenshot of the error.
theshadow3d
07-30-2007, 08:28 AM
ok i will upload an image for the error
theshadow3d
07-30-2007, 08:40 AM
The macro line is :
If vf_Password = vf_Login.Column(2) Then
vg_Login = vf_Login
vg_TipoAcceso = vf_Login.Column(3)
DoCmd.RunMacro "DAbrirMainMenux"
theshadow3d
07-30-2007, 09:37 AM
When i put the username and password and click on the button i get this :
http://www.access-programmers.co.uk/forums/attachment.php?attachmentid=18223&stc=1&d=1185816967
theshadow3d
07-31-2007, 06:07 AM
I am now getting error #2485 can its tell me that the macro is new and it maybe nade to be saved !!!!!!!! can any one tell me what to do ?
The_Doc_Man
07-31-2007, 08:42 AM
DoCmd.RunMacro "DAbrirMainMenux"
That won't open a form. That will open another macro.
On what line does the referenced macro fail?
theshadow3d
07-31-2007, 12:36 PM
That won't open a form. That will open another macro.
On what line does the referenced macro fail?
my program is doing the following:
i have an interface to get the username and the password and after pressing the okay button it will check the username and the passowrd and then called a macro that open the main form of the program.
When i run the program i can access the login interface and enter the username and the password but after i click on the button i get the massage that i upload a picture for it up so the problem is that i cant run the macro the program fail when it read the cod that i am opening the macro in it
i make some research and i think the problem is with the activx licens or something like that but i could solve the problem yet
The_Doc_Man
07-31-2007, 01:18 PM
If the activeX module is not properly signed, you would get a security violation. My Spanish is not good enough to handle the conditions named.
So when you use your interface to get the username and password challenge done, and then you are ready to open the form, the macro you named is not one that will open a form. You have yet to demonstrate a line that would fail to open a form because you have yet to demonstrate the line that TRIES to open the form.
I suspect from your last post that you have something linked to an external source - some kind of image on the form. While it is OK to link to an image via OLE technology, it is really NOT a good idea to use that on an image that is not local to your computer. It is very possible that the link is running into a security problem.