Www.dogs.com

www.dogs.com
I need Access Help — I have a table with a column of names and a column of URL’s – how can i make a query…

I have a table with a column of Names and column of URL’s.

How can i make a query return just one column, which will give me the names, and have the urls embedded in the name.

Example:

*Table*
1 Dog—-www.dog.com
2 Cat—-www.cat.com
3 Bird—-www.bird.com

*Query*
Dog (with a link to www.dog.com)
Cat (linked to www.cat.com)
Bird (linked to www.bird.com)

All of this is to make a webpage that has a column of links. Is there an easier way or is there even a way to do what i’m trying to do?

Thanks!

I think ‘tancy2411′ may have misunderstood your question.

Unlike Excel, Access stores your information as plain text without any formatting. This means your query cannot display text with an URL embedded in it. You can probably make links show up on a form or report (I’ve never done it, but I don’t see why you can’t)–and Access seems to have a feature to make web pages automatically (which I’ve never used, so I couldn’t tell you how to use it)–but considering your purpose, I don’t really think that’s necessary (in fact, making a form or report with links may not help you make a webpage at all).

Instead, you can make a query that writes the HTML for your webpage (or at least some of it) automatically. Try copying something like this into ‘SQL View’ of a new query:

SELECT ‘‘ + [Name] + ‘
‘ AS Output FROM TableName;

Replace ‘URL’ with the name of the field (column) in your table that holds the URLs (leave the brackets around it), ‘Name’ with the name of the field that holds the site’s names, and ‘TableName’ with the name of your table. You could also change ‘Output’ to something else, but it shouldn’t really matter.

Then save the query (name it whatever you want) –> go to ‘File’ –> click ‘Export…’ –> browse to where you want to put it –> put whatever you want in ‘File name:’, as long as it ends in ‘.htm’ or ‘.html’ –> in the drop down list next to ‘Save as type:’, select ‘Text Files (*.txt;*.csv;*.tab;*.asc)’ –> click ‘Export’ –> make sure the top option (‘Delimited’) is selected –> click ‘Next >’ –> choose ‘Space’ as the delimiter –> make sure ‘Include Field Names…’ is unchecked –> in the drop down list next to ‘Text Qualifier:’, select ‘{None}’ –> click ‘Next >’ –> click ‘Finish’ –> click ‘OK’.

Now you should be able to open the file you created in your web browser and click on the links. Of course, if you’re not a big fan of very simple webpages, you can always edit the file to suit your needs (probably should at least add , , , and <body> tags), or copy and paste the contents of the exported query into an existing webpage.</p> <p>A couple of things about the SQL code:<br /> This assumes all your URLs begin with ‘http://’. If none of them do, you can simply add ‘http://’ immediately after ‘href=”’ (between the double quote and single quote signs, making ‘<a href=”http://’ +...’). If some of them do and some don’t, you’ll have to decide if it is easier to add ‘http://’ to the ones that don’t have it, remove it from the ones that do (and add it to the query), or (if you have lots of URLs and it would take too long to change them) make the query automatically detect it and add it if necessary with an if statement and the ‘Left’ function (I can help with this if you don’t know how). Also, it would be possible to change the query to make the resulting list of links turn out bulleted or in a table. The way it is now is just the simplest way.</p> <p>I use Access 2003; if you use a different version, the actual instructions may be slightly different.</p> <p>If you need more help, feel free to contact me using the link on my profile page (or just add additional details). Hope this helps!</p> <p><b>A Dog Tests the iPad – Tested.com</b><br /> <object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/H3xdcx2WUcU&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/H3xdcx2WUcU&hl=pl&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p> <p> <script type="text/javascript"> hopfeed_template=""; hopfeed_align="LEFT"; hopfeed_type="IFRAME"; hopfeed_affiliate_tid=""; hopfeed_affiliate="powpowpow"; hopfeed_fill_slots="true"; hopfeed_height=280; hopfeed_width=336; hopfeed_cellpadding=5; hopfeed_rows=; hopfeed_cols=1; hopfeed_font="Verdana, Arial, Helvetica, Sans Serif"; hopfeed_font_size="9pt"; hopfeed_font_color="#000000"; hopfeed_border_color="#FFFFFF"; hopfeed_link_font_color="#3300FF"; hopfeed_link_font_hover_color="#3300FF"; hopfeed_background_color="#FFFFFF"; hopfeed_keywords="www.dogs.com"; hopfeed_path="http://powpowpow.hopfeed.com"; hopfeed_link_target="_blank"; </script><br /> <script type="text/javascript" src="http://powpowpow.hopfeed.com/script/hopfeed.js"></script></p> <p>Tags: <a href="http://www.best-dog-training-book.info/tag/www-dogs-com/" rel="tag">www.dogs.com</a>, <a href="http://www.best-dog-training-book.info/tag/www-dogs-com-games/" rel="tag">www.dogs.com games</a>, <a href="http://www.best-dog-training-book.info/tag/www-dogs-com-pictures/" rel="tag">www.dogs.com pictures</a>, <a href="http://www.best-dog-training-book.info/tag/www-dogs-compictures/" rel="tag">www.dogs.com/pictures</a></p> <p class="postmetadata alt"> <small> This entry was posted on Friday, February 5th, 2010 at 5:06 am and is filed under <a href="http://www.best-dog-training-book.info/category/random-posts-and-articles/" title="View all posts in Random Posts and Articles" rel="category tag">Random Posts and Articles</a>. You can follow any responses to this entry through the <a href='http://www.best-dog-training-book.info/www-dogs-com/feed/'>RSS 2.0</a> feed. You can <a href="#respond">leave a response</a>, or <a href="http://www.best-dog-training-book.info/www-dogs-com/trackback/" rel="trackback">trackback</a> from your own site. </small> </p> </div> </div> <!-- You can start editing here. --> <!-- If comments are open, but there are no comments. --> <div id="respond"> <h3>Leave a Reply</h3> <div class="cancel-comment-reply"> <small><a rel="nofollow" id="cancel-comment-reply-link" href="/www-dogs-com/#respond" style="display:none;">Click here to cancel reply.</a></small> </div> <form action="http://www.best-dog-training-book.info/wp-comments-post.php" method="post" id="commentform"> <p><input type="text" name="author" id="author" value="" size="22" tabindex="1" aria-required='true' /> <label for="author"><small>Name (required)</small></label></p> <p><input type="text" name="email" id="email" value="" size="22" tabindex="2" aria-required='true' /> <label for="email"><small>Mail (will not be published) (required)</small></label></p> <p><input type="text" name="url" id="url" value="" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> </code></small></p>--> <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type='hidden' name='comment_post_ID' value='648' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p> <p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="b5a968a8d1" /></p> </form> </div> </div> <hr /> <div id="footer" role="contentinfo"> <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <p> BEST DOG TRAINING BOOK is proudly powered by <a href="http://wordpress.org/">WordPress</a> <br /><a href="http://www.best-dog-training-book.info/feed/">Entries (RSS)</a> and <a href="http://www.best-dog-training-book.info/comments/feed/">Comments (RSS)</a>. <!-- 21 queries. 0.346 seconds. --> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> <!-- Start of StatCounter Code --> <script type="text/javascript"> <!-- var sc_project=6330579; var sc_security="e057a213"; var sc_invisible=1; //--> </script> <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script> <noscript><div class="statcounter"><a title="web analytics" href="http://statcounter.com/"><img class="statcounter" src="http://c.statcounter.com/6330579/0/e057a213/1/" alt="web analytics" /></a></div></noscript> <!-- End of StatCounter Code --> <!--stats_footer_test--><script src="http://stats.wordpress.com/e-201221.js" type="text/javascript"></script> <script type="text/javascript"> st_go({blog:'16080866',v:'ext',post:'648'}); var load_cmc = function(){linktracker_init(16080866,648,2);}; if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc); else load_cmc(); </script> </body> </html>