You can modify the myreplace function to implement complicated replacement. It seems to be of little use. It mainly refers to how to read the access table and field list.
<%
'####################################
'Replacing the database content with lamking
'Http: // www.lamking.com QQ: 628557
'####################################
Dim dB, connstr, Conn, RS, rs2, str1, str2, I
Str1 = "ABCD" 'string to be replaced
Str2 = "1234" 'replaced by a string
DB = "lamking. mdb"
Set conn = server. Createobject ("ADODB. Connection ")
Connstr = "provider = Microsoft. Jet. oledb.4.0; Data Source =" & server. mappath (db)
Conn. Open connstr
Set rs = conn. openschema (20)
Do while not Rs. EOF
If RS ("table_type") = "table" then
Set rs2 = server. Createobject ("ADODB. recordset ")
Rs2.open "select * from [" & RS ("table_name") & "]", Conn, 1, 3
Do while not rs2.eof
For I = 0 to rs2.fields. Count-1
If rs2 (I). properties ("isautoincrement") = false then
Rs2 (rs2 (I). Name) = myreplace (rs2 (I). value)
End if
Next
Rs2.movenext
Loop
Rs2.close
Set rs2 = nothing
End if
Rs. movenext
Loop
Rs. Close
Set rs = nothing
Conn. Close
Set conn = nothing
Response. Write "replaced"
Function myreplace (byval tstr)
If tstr = "" Or isnull (tstr) then
Exit Function
Else
Myreplace = Replace (tstr, str1, str2)
End if
End Function
%>