Results 1 to 2 of 2

Thread: [RESOLVED] Inputing into db from Website

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2010
    Posts
    12

    Resolved [RESOLVED] Inputing into db from Website

    I am running access 2003 vba and am trying to figure out the best approach for saving information from a website to my database.

    The initial way I was working with is using the activex control for viewing websites on my forums and just a command button to initiate the code. I can view the website just fine but I do not know how to step through the website and put the information into workable information.

    The website uses java and is not in any fixed format really. The length of the document changes based on the person.

    Here is a small sample of the source of the website I am trying to work on:

    Code:
    <div class="details">
    	<span id="Quals" onclick="javascript: toggleTable(this.id)" class="OutlineIcon">
    	<img id="imgQuals" src="images/minusIcon.gif" border="0" WIDTH="14" HEIGHT="14"></span>
    	<span class="detailsHd">ATMS Quals</span>
    	
    	<table id="tblQuals" border="1" cellpadding="2" cellspacing="0" class="details">
    	
    		<tr><th>Qual Number</th>
    			<th>Title</th>
    			<th>Expires</th></tr>
    		
    		
    		<tr><td align="left" valign="top" class="Normal">
    				ADM_MAT&nbsp;</td>
    			<td align="left" valign="top" class="Normal">
    				<a href="atms_supv_qualtree.cfm;jsessionid=0e30e09a3ccb91f2c5ca5e806e7d2b2d6176?PID=22644&amp;qualcat=ADM&amp;qualid=_MAT&amp;title=MANDATORY ANNUAL TRAINING" class="Normal">MANDATORY ANNUAL TRAINING&nbsp;</a></td>
    			<td align="center" valign="top" class="Normal">
    				10/31/2011&nbsp;</td></tr>
    		
    		
    		<tr><td align="left" valign="top" class="Normal">
    				BASSHIP_WORKER&nbsp;</td>
    			<td align="left" valign="top" class="Normal">
    				<a href="atms_supv_qualtree.cfm;jsessionid=0e30e09a3ccb91f2c5ca5e806e7d2b2d6176?PID=22860&amp;qualcat=BAS&amp;qualid=SHIP_WORKER&amp;title=BASIC SHIPBOARD WORKER" class="Normal">BASIC SHIPBOARD WORKER&nbsp;</a></td>
    			<td align="center" valign="top" class="Normal">
    				10/31/2011&nbsp;</td></tr>
    		
    		
    		<tr><td align="left" valign="top" class="Normal">
    				BASSHOP_WORKER&nbsp;</td>
    			<td align="left" valign="top" class="Normal">
    				<a href="atms_supv_qualtree.cfm;jsessionid=0e30e09a3ccb91f2c5ca5e806e7d2b2d6176?PID=22861&amp;qualcat=BAS&amp;qualid=SHOP_WORKER&amp;title=BASIC SHOP WORKER" class="Normal">BASIC SHOP WORKER&nbsp;</a></td>
    			<td align="center" valign="top" class="Normal">
    				10/31/2011&nbsp;</td></tr>
    Any help/guidance is appreciated.

    TheChazm
    Last edited by thechazm; Dec 6th, 2010 at 11:49 AM.

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 2010
    Posts
    12

    Re: Inputing into db from Website

    Never mind I figured it out. Took around 8 hrs but got it!

    Code:
    MsgBox WebBrowser1.Document.Getelementbyid("tblcourses").rows(1).cells(1).innertext

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width