I posted this same code earlier but I posted for a different reason which I later worked out.
This time, it is same code but for different reason.
I have a database that has 2 ids.
One Id is called a system ID and the other is called Geo_ID.
The BlockID is unique but the system_ID is not.
The way the database is structured is:
System_ID has a field called fullname.
It is almost like a category.
Within this fullname is another field called blocks.
The fullname name can have one or more blocks and each block has a unique blockID.
The layout is usually like this:
System_ID Fullname Blocks BlockID
1 James Str Martin Dr 1
1 James Str Michelle Rd 2
1 James Str Karen Circle 3
2 MLK Dr Grayhound Way 1
2 MLK Dr Anderson park Dr 2
etc, I hope you get the picture now.
There are 3 things I am trying to do now.
One, If we query the database say get fullname, and the name is called James Str, since there are 3 blocks under James Str, we want to able to: Number of Blocks ____
The next thing we would like to do is say:
If we click on one of the blocks, we would like to say:
Block 1 of 3 (since in this case there are 3 blocks)
Lastly, we would like to populate 5 additional input textboxes with the value of each block.
So far, the only thing I have been able to do is populate 1 input textbox with system_Id.
Any help on any of these 3 issues would be greatly, greatly appreciated.
You guys have really been great here on this forum.
Here is code I am working with so far.
This time, it is same code but for different reason.
I have a database that has 2 ids.
One Id is called a system ID and the other is called Geo_ID.
The BlockID is unique but the system_ID is not.
The way the database is structured is:
System_ID has a field called fullname.
It is almost like a category.
Within this fullname is another field called blocks.
The fullname name can have one or more blocks and each block has a unique blockID.
The layout is usually like this:
System_ID Fullname Blocks BlockID
1 James Str Martin Dr 1
1 James Str Michelle Rd 2
1 James Str Karen Circle 3
2 MLK Dr Grayhound Way 1
2 MLK Dr Anderson park Dr 2
etc, I hope you get the picture now.
There are 3 things I am trying to do now.
One, If we query the database say get fullname, and the name is called James Str, since there are 3 blocks under James Str, we want to able to: Number of Blocks ____
The next thing we would like to do is say:
If we click on one of the blocks, we would like to say:
Block 1 of 3 (since in this case there are 3 blocks)
Lastly, we would like to populate 5 additional input textboxes with the value of each block.
So far, the only thing I have been able to do is populate 1 input textbox with system_Id.
Any help on any of these 3 issues would be greatly, greatly appreciated.
You guys have really been great here on this forum.
Here is code I am working with so far.
Code:
<td align="left"><font size="2" color="Black" face="Arial"><b>Project Name:</b></font></td>
<td><select name="TxtprojectName" size="1" onChange="document.sidewalk.TxtsysID.value = this.value;">
<option selected><Choose One></option>
<%
dim Conn,SQLstr
Function OpenDBFConn(Path)
Dim Conn: Set Conn = CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Path & ";" & _
"Extended Properties=""DBASE IV;"";"
Set OpenDBFConn = Conn
End Function
Dim DBConn
Set DBConn = OpenDBFConn("c:\arcgis")
'Open recordset from inventory table
Dim rs
Set rs = DBConn.Execute("SELECT * FROM cline.dbf order by system_id")
While not rs.EOF
%>
<OPTION value="<% =rs("system_ID") %>"><% =rs("full_name") %></OPTION>
<%
rs.MoveNext
wend
rs.close
set rs=nothing
%>
</select></td>
<td align="right" nowrap><font size="2" color="Black" face="Arial"><i>System ID:</i></font></td>
<td><input type="text" name="TxtsysID" id="TxtsysID" size="5" value=""></td>