datacontrol
Registered User.
- Local time
- Today, 15:43
- Joined
- Jul 16, 2003
- Messages
- 142
I ahve a simple form in which i am testing. I have a text box named "user" which pulls the user name from the system (workstation). When I press apply, I get an enter parameter value for user name.....help please
Option Compare Database
Option Explicit
Private Sub Apply_Click()
End Sub
Private Sub Command12_Click()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = currentdb()
Set rst = db.OpenRecordset("tblce", dbOpenDynaset)
DoCmd.RunSQL "INSERT INTO tblce(tblce_user) VALUES (" & Me.user & ")"
End Sub
Private Sub Detail_Click()
End Sub
Private Sub user_BeforeUpdate(Cancel As Integer)
End Sub
Option Compare Database
Option Explicit
Private Sub Apply_Click()
End Sub
Private Sub Command12_Click()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = currentdb()
Set rst = db.OpenRecordset("tblce", dbOpenDynaset)
DoCmd.RunSQL "INSERT INTO tblce(tblce_user) VALUES (" & Me.user & ")"
End Sub
Private Sub Detail_Click()
End Sub
Private Sub user_BeforeUpdate(Cancel As Integer)
End Sub