Geoff Codd
Registered User.
- Local time
- Today, 23:49
- Joined
- Mar 6, 2002
- Messages
- 190
Hi there,
I have the following Code
DoCmd.SetWarnings False
Dim vCircuit_Info
Dim vCircuit_Info_ID As Integer
Dim vCircuit_Info_Text As String
Dim LineNo As Integer
Set vCircuit_Info = CurrentDb().OpenRecordset("tblCircuit_Data")
Do Until vCircuit_Info.EOF
vReporting_ID = vCircuit_Info!ID
vReporting_Text = vCircuit_Info!Field1
If (Right(vReporting_Text, 18) = ">City: </font></b>") Then
LineNo = vReporting_ID + 1
End If
vCircuit_Info.MoveNext
Loop
vCircuit_Info.Close
DoCmd.SetWarnings True
End Function
Which looks for the value ">City: </font></b>" in a record and returns the record no, What I need to do is take the information form the next line (LineNo = vReporting_ID + 1)
But this is where I am stuck.
Any ideas appreciated.
Thanks
Geoff
I have the following Code
DoCmd.SetWarnings False
Dim vCircuit_Info
Dim vCircuit_Info_ID As Integer
Dim vCircuit_Info_Text As String
Dim LineNo As Integer
Set vCircuit_Info = CurrentDb().OpenRecordset("tblCircuit_Data")
Do Until vCircuit_Info.EOF
vReporting_ID = vCircuit_Info!ID
vReporting_Text = vCircuit_Info!Field1
If (Right(vReporting_Text, 18) = ">City: </font></b>") Then
LineNo = vReporting_ID + 1
End If
vCircuit_Info.MoveNext
Loop
vCircuit_Info.Close
DoCmd.SetWarnings True
End Function
Which looks for the value ">City: </font></b>" in a record and returns the record no, What I need to do is take the information form the next line (LineNo = vReporting_ID + 1)
But this is where I am stuck.
Any ideas appreciated.
Thanks
Geoff