It looks like you just need some simple VBA code, to concatentate the proper
values together. Assuming you have two textboxes on your form, one showing
just the Street Number and one with the Street Name, and a command button on
the form, you might do something like this:
Option Compare Database
Option Explicit
Private Sub cmdPropertySearch_Click()
On Error GoTo ProcError
Dim strLink As String
'Save record, if dirty
If Me.Dirty = True Then
Me.Dirty = False
End If
'Check for street number and street name entries
If Len([StreetNumber] & "") = 0 Then
MsgBox "You must enter a street number.", _
vbInformation, "Unknown Street Number..."
Me.StreetNumber.SetFocus
GoTo ExitProc
End If
If Len([StreetName] & "") = 0 Then
MsgBox "You must enter a street name.", _
vbInformation, "Unknown Street Name..."
Me.StreetName.SetFocus
GoTo ExitProc
End If
strLink = "
http://sdatcert3.resiusa.org/" _
& "rp_rewrite/results.aspx?" _
& "County=03&SearchType=STREET&" _
& "StreetNumber=" & StreetNumber & "&" _
& "StreetName=" & StreetName & ""
'Debug.Print strLink
Application.FollowHyperlink strLink
ExitProc:
Exit Sub
ProcError:
MsgBox "Error " & Err.Number & ": " & Err.Description, _
vbCritical, "Error in procedure cmdPropertySearch_Click..."
Resume ExitProc
End Sub
Note: You can uncomment the Debug.Print statement and comment out the
Application.FollowHyperlink line of code, in order to print the concatenated
value to the Immediate Window (view with <Ctrl><G>, ie. hold down the Control
and G keys at the same time).
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________