pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi, i have form that is linked to a table but not all the fields...
I want to update few fields with DAO Vba and some other field with DoCmd.RunCommand acCmdSaveRecord that is available in form macro...
I know no one will do this kind of thing but i want to know if it is possible to update this datas to same record[as in same row in the table...]
The main reason behind this is that I want my users only to added values but not retrive/view any data updated by someone else....When i link the form/all controls directly to table fields the users can click on next/ctrl + F and search for table data even from from [thats what i came to know]
Or my another question here would be to disable ctrl + F or make the form available only to add data to table and nothing else....no nothing..
Thanks for helping. And sorry if this is very silly question 'm asking...
I want to update few fields with DAO Vba and some other field with DoCmd.RunCommand acCmdSaveRecord that is available in form macro...
I know no one will do this kind of thing but i want to know if it is possible to update this datas to same record[as in same row in the table...]
The main reason behind this is that I want my users only to added values but not retrive/view any data updated by someone else....When i link the form/all controls directly to table fields the users can click on next/ctrl + F and search for table data even from from [thats what i came to know]
Or my another question here would be to disable ctrl + F or make the form available only to add data to table and nothing else....no nothing..
Thanks for helping. And sorry if this is very silly question 'm asking...
Code:
[/FONT]
[FONT=Courier New]Private Sub Command25_Click()
'save
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("REQUESTtb", dbOpenDynaset)
rst.AddNew
rst!DL_NBK_ID = Me.DLNBK
rst!DL_NAME = Me.DLNAME
DoCmd.RunCommand acCmdSaveRecord
rst.Update
rst.Close
DoCmd.GoToRecord , "", acNewRec
End Sub