ralphralph07
MIS
Hello Everyone
I have a database that been convert from access 2.0 to access 97 and now converted to Acess 2002 - 2003. The database has thrown an error for dao2535, which i've removed from Tools, Reference and added the dao 3.6 but some code is still not working for example:
I've just been given the database so haven't done any of the coding.
Any help greatfully received.
Ralph
I have a database that been convert from access 2.0 to access 97 and now converted to Acess 2002 - 2003. The database has thrown an error for dao2535, which i've removed from Tools, Reference and added the dao 3.6 but some code is still not working for example:
Code:
Sub fixminvalues()
Dim met As Recordset, mydb As Database
Set mydb = CurrentDb()
Set met = mydb.OpenRecordset("metals data")
met.MoveFirst
Do Until met.EOF
met.Edit
If met.param = "Cd" And met.Value < 0.005 Then met.Equiv = "<"
If met.param = "Cd" And met.Value >= 0.005 Then met.Equiv = "="
If met.param = "Cd" And met.Value < 0.01 Then met.Value = 0.01
If met.param <> "Cd" And met.Value < 0.015 Then met.Equiv = "<"
If met.param <> "Cd" And met.Value >= 0.015 Then met.Equiv = "="
If met.param <> "Cd" And met.Value < 0.02 Then met.Value = 0.02
met.Update
met.MoveNext
Loop
End Sub
I've just been given the database so haven't done any of the coding.
Any help greatfully received.
Ralph