Question

Data Access Page Drop Down Hyperlink

Asked by: VBDATAMAN

I need a drop-down list that has hyperlinks as values and passes the values onto another Data Access Page as a filter.  I am submitting this for the third time.  I wish I can give more than 500 points but I can't.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-07-31 at 13:55:00ID22733033
Tags

access

,

data

,

page

,

drop

,

down

Topics

Microsoft Access Database

,

Access Architecture/Design

,

Active Server Pages (ASP)

Participating Experts
7
Points
500
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Hyperlinks in drop down list boxes?
    Is there any way to put hyperlinks as options in a drop down list box?
  2. Hyperlink problem
    Ive set up a hyperlink in director 8.5 as follows. I created a text box and highlighted the data, then went to Window - Inspectors - Text and entered in the website i wanted to go to. I then added the following behavior to my movie so that whenever I clicked on a hyperlink th...
  3. hyperlink
    Hi, I'm using hyper links for menu to navigate from one page to another in my asp.net vb.bet vs 2003 web application. <TD><asp:hyperlink CssClass="HYPERLINK" id="hypWelcome" runat="server" Width="80px" NavigateUrl="welcom...
  4. Browse to Hyperlink
    Hi All, I tried to do this in Frontpage but have now migrated my site to Dreamweaver. I am building a quotation tracking system. The users input details like quote date, customer etc and input it onto the database (access) via a dreamweaver front end. I have a Coldfusion ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: VBDATAMANPosted on 2007-07-31 at 13:57:56ID: 19604184

ok I can try and attemt to answer myself but I will wait a couple of minutes

 

by: angelIIIPosted on 2007-07-31 at 23:05:29ID: 19606554

hi,
  instead of deleting and resubmitting it all the time, keep the question open.
  you have to note that all "experts" are non-paid and hence volunteering, and currently you might experience many people being on vacation...
angelIII, zone advisor

 

by: angelIIIPosted on 2007-07-31 at 23:07:20ID: 19606560

now, in regards to your question, can you give a bit more details about what you have:
I assume ms access as database (and a table with the values for the drop-down?)
how do you call the other page from the drop down? what do you want to be passed?
do you know how to pass data from one page to another?

 

by: VBDATAMANPosted on 2007-08-01 at 05:48:10ID: 19608192

ok, thanks, I have an MS Access Database which has a table for the values from the drop down.  I am trying to click on the drop down select a value and that will open up another page and filter records based on the value I selected on the previous page.

I want to call the other page from the drop down through a hyperlink, that is on the afteraction of the drop down, a hyperlink connects to page #2.  I want to pass the value from page#1 from the drop down to page #2 as the filter criteria for the records.  No I do not know how to pass data from one page to another.

 

by: angelIIIPosted on 2007-08-01 at 06:08:20ID: 19608319

I don't know where you got the idea of using "hyperlink" here, in access, you just create a short vba macro on the dropdown's selection changed/itemclick events, and open the other form, and set the form's filter criteria...

Private Sub Combo0_Change()
 
  Dim f As Form_Page2Form
 
  set f = new Form_Page2Form    <<< create a (new) instance of page2
  f.FilterOn = False    <<< disable any existing filter
  f.Filter = " somefield = somevalue "   <<< this will be based on the criteria in Page1
  f.FilterOn = True    <<< apply the filter
 
  f.Visible = True    <<<< show the form
   
End Sub

 

by: VBDATAMANPosted on 2007-08-01 at 06:29:29ID: 19608522

i don't want to use forms, I will be using data access pages via Internet Explorer, its no problem doing it with the forms on Microsoft Access but when I try saving the form as a data access page it doesn't like the macros when I try to run it on Internet Explorer

 

by: VBDATAMANPosted on 2007-08-01 at 06:30:44ID: 19608533

by the way, thanks for responding I do realize this is an all volunteer system, I have unlimited points and I willing to share as many as I can today since I am under a little pressure here to get this data access page working.

I have several more questions and wouldn't mind giving you all of the 500 points for each question.

 

by: VBDATAMANPosted on 2007-08-01 at 06:32:55ID: 19608567

basically what i need help with is the syntax, if you can help me out with the syntax I would appreciate it, or if you know of a website that contains all types of syntaxes.  I appreciate any responses you can give me as quick as possible.

 

by: angelIIIPosted on 2007-08-01 at 06:46:04ID: 19608693

>I will be using data access pages via Internet Explorer
then, sorry, but I am out... I have 0 experience with that, and actually no idea about that has to work... :-(

 

by: angelIIIPosted on 2007-08-01 at 06:49:24ID: 19608725

I have asked a couple of folks that are better in access than I am to look here...

 

by: VBDATAMANPosted on 2007-08-01 at 07:01:44ID: 19608829

thanks

 

by: jimhornPosted on 2007-08-01 at 07:28:42ID: 19609058

Since Access in general is not a very good data source for a Web application, and since many Access experts are also ASP experts, many Access experts just don't use Data Access Pages.  I suspect you won't get a world of help here.

Sorry.
-Jim

 

by: ericpetePosted on 2007-08-01 at 07:53:58ID: 19609330

"...I will be using data access pages via Internet Explorer,..."

Is this a web-based application? Or is it an internal network?

If it's the former, you're going to find that Access macros and the web don't mix very well. ASP can't tell an Access database to run a macro or a procedure in a module the same way it can tell a SQL database to run a stored procedure (or rather, it couldn't as of Access2000 -- that could have changed).

Jim is largely correct in saying that generally, most ASP people will use some other database for a web application, but using Access isn't impossible or even unsatisfactory if you're not expecting a ton of traffic. In your case, I would highly recommend you consider using ASP. Doing what you want to do isn't really difficult, but using Data Access Pages is going to make it so. If you want, we can get the Moderators or the Zone Advisor to cross-post this for you.

JMHO,

ep

 

by: VBDATAMANPosted on 2007-08-01 at 10:08:11ID: 19610779

ericpete, you are exactly right, this application will be on an internal network for only a few users.  Please see if the moderators or the Zone Advisor can cross post this so I can get some feedback on how to do it using Data Access Page, I gues the reason why I want to use Data Access Pages is because it seems so much simpler, Is there another way to do it?

 

by: angelIIIPosted on 2007-08-01 at 10:17:36ID: 19610843

your question is already crossposted to 3 zones:
    * Access Coding/Macros
    * SQL Query Syntax
    * Access Architecture/Design
so the only thing you can do is to post a pointer question in any other zone(s) and point it to this question.

angelIII, zone advisor

 

by: ericpetePosted on 2007-08-01 at 11:01:02ID: 19611269

VBDATAMAN,

You could remove it from SQL Query Syntax or Architecture/Design; the issue has little or nothing to do with it. But I don't think that's really your best solution. It DOES have to do with Forms, but your best bet is to post it in the top level Access zone. Perhaps angelIII would be so good as to take care of that.

"...I gues the reason why I want to use Data Access Pages is because it seems so much simpler.."

I suppose that's reasonable. The problem is that you can't get there from here. For what you want to do, forms are the way to go.

Somewhere around here, I have an app that has a form that essentially does what you want yours to do: You want to have information displayed based on the selection of an item from a list, as I understand it.

So... it's not really that complicated. You build your list box. You do a series commands based on the selection (it's been a while since I actually had to do this, so I'm just going to post the framework, but I can dig up specific code, or one of the real Experts can help you as well).

Then you create a module for that list box that says

Case (SelectionMadeFromList)
   Case1: DoThisStuff
   Case2: DoSomethingElse
   Case3: DoSomethingEntirelyDifferent
End Case

You can also do it with a series of If/Then/Else statements. But you can use each Case to build a series of functions, including opening a different form or, if you're really tricky and the source information is the same, use the same form with hidden fields that become visible only when you need them.

ep

 

by: angelIIIPosted on 2007-08-01 at 11:19:15ID: 19611460

question "rezoned" to ms access and asp zone.

 

by: VBDATAMANPosted on 2007-08-01 at 11:50:38ID: 19611713

"so the only thing you can do is to post a pointer question in any other zone(s) and point it to this question"

I am sorry but I am a newbie and I do not know how to do this.  As for the forms, I know how to do it in the forms with no problem, I used if statements.  What I can't figure out is how to do it on Data Access Pages.  I am going to try and do it with ASP and see how far I get.

 

by: ShineOnPosted on 2007-08-01 at 14:47:01ID: 19613135

OK, you want to do what?  

I'm very confused.  What is the point of the hyperlinks?  Would they launch another DAP or what?

You said something about the hyperlink value being used as a filter for another DAP.  In what fashion?

 

by: rdivilbissPosted on 2007-08-01 at 15:34:51ID: 19613387

Code and ample comments are on this live example page.

http://www.rodsdot.com/ee/accessDropDownList.asp

Regards,
Rod

 

by: rdivilbissPosted on 2007-08-01 at 15:43:48ID: 19613428

Ans a version that does not require JavaScript, but will require a submit button.

http://www.rodsdot.com/ee/accessDropDownList1.asp

 

by: fritz_the_blankPosted on 2007-08-01 at 17:25:26ID: 19613772

A few questions please:

1) Do the hyperlinks come from a table or do you use a static list?
2) If you use a table, does that table have an auto-increment field?
3) Using filters may not be the best approach with a web application. Using the passed parameter in a WHERE clause on the receiving page may be a better option.

I am asking for the following reasons:

If you are using a static list, then you will just do something like this:

<select name="strURL">
    <option value="http://www.cnn.com">CNN</option>
    <option value="http://www.mnsbc.com">MNSBC</option>
    <option value="http://www.pbs.org">PBS</option>
</select>


If you are taking the value from the database, you have two options:

a) if you have no auto increment field, then you would have to do something like this:

<select name="strURL">
<%
do while not objRS.eof
   response.write("<option value=""" & objRS("strURL")  & """>" & objRS("strURLFriendlyName") & "</option>")
   objRS.MoveNext
Loop
%>

b) if you have an auto increment field, I would use that instead of the actual URL. You could then pass the integer ID to the receiving page as a parameter instead.


In any event, if you would be willing to post the table name and the name and types of your fields, someone here will point you in the right direction.

FtB

 

by: Computer101Posted on 2008-03-20 at 17:55:55ID: 21177277

Forced accept.

Computer101
EE Admin

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...