Map Link

B

Bruce Rodtnick

I have a database that has a command button that collects the address of the personnel and calls up Internet Explorer and finds a map to that address.  The code is:

Private Sub cmdGetMap_Click()
    Me.cmdGetMap.Hyperlink.Address = "http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=" & Me.Address & "&csz=" & Me.City & "+" & Me.State & "+" & Me.Zip & "&Get Map=Get+Map"
End Sub

It works GREAT!  But I have another database that I'm trying to do it with and I'm getting an error that says "method or data member not found" and it highlights .Address on my hyperlink.

Both forms is each database have identical named text boxes with identical properties on the form and the field names and properties in the table are identical.  References in both databases are the same.  The table and form in the database that works is called Veterans and the one that does not work is called Personnel.  That is the only difference I can see.

What would be causing one to work and not the other?

Bruce Rodtnick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top