Link to home
Start Free TrialLog in
Avatar of drjoeusa
drjoeusa

asked on

Visual Basic for applications references

I am working with a client who cannot access the references tools>references tab on the visual basic code window.  Where to I find the configuration option to turn this on?
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

There is no option to turn this on per se.  Can you get a screen shot of what the client is seeing ?

mx
Avatar of drjoeusa
drjoeusa

ASKER

I will try to get the screen shot of what he is seeing.  He tells me that the References option is dimmed and not available.
IF ... the db is an MDE or ACCDE ... and you open the VBA editor ... the References will be grayed out.

And if I recall ... there is one other situation wherein References might be grayed out ... just cannot remember it at the moment.
This is an accdb.  I can run the application on my computer without a problem, but he can't.
Here is the error that he is getting.  It shows the 'References' grayed out.
ErrorScreen.pdf
ASKER CERTIFIED SOLUTION
Avatar of IT Project Mgr
IT Project Mgr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After the
.Edit

You have
    .Fields(txtDistField) ....
Should be

.Fields("txtDistField") ....   ' Field name in double quotes
The problem with access to the references was that they had not stopped the execution of the procedure.  I feel so stupid that I didn't realize that.  One they got the references right, the application worked fine.   Thanks.
You still have the (compile) error I showed above.
txtDistField is the name of a text box on the form so that the user can specify the field that receives the distance value.   The procedure works fine once the references are right.

Thanks,