alireza1989@hot
Registered User.
- Local time
- Today, 07:55
- Joined
- Feb 26, 2007
- Messages
- 23
Hi, I have a form called Edit Column, which contains two text boxes: ID and Description. The user types something in these two boxes and presses a button, and this button should take the value of ID and edit description for that particular ID in the table "Map". Here is the code I have written for it:
Thanx in Advance
Code:
Dim d As Database
Set d = CurrentDb
Dim r As Recordset
Set r = d.OpenRecordset("Map")
r.MoveFirst
If r![ID] = Me.Text1 Then [I]('Text1 is the text box where the user enters an ID)[/I]
Do While Not r.EOF
r.Edit
r![Description] = Me.Text3
r.Update
r.MoveNext
Loop
MsgBox "Successful", vbInformation
Else
MsgBox "This column does not exist in the Store", vbCritical
End If
Thanx in Advance