My Assistant
![]() ![]() |
|
|
Mar 24 2004, 04:12 PM
Post
#1
|
|
|
UtterAccess Guru Posts: 523 From: Illinois |
I'm in the middle of trying to re-create a FoxPro database to Access. This is a purchase order database. Once the purchase order is entered by the user, I need to be able to lock down the entire purchase order. The only way the user can edit the purchase order is to click the edit command button and then it records their userID, name, etc...
Does anyone know how to do this???? Thanks! Kathy |
|
|
|
Mar 24 2004, 04:57 PM
Post
#2
|
|
|
UtterAccess Veteran Posts: 421 From: Omaha, NE |
Set the allowedits property to false in the FormCurrent event. Then to allow edits make a command button and have the OnClick Property set allowedits = False.
FormCurrent allowedits = false end sub commandbutton_onClick() Allowedits = true end sub *Quick note: to save their user ID what I do is have the user put their ID into a textbox and save it with the record. Then if someone clicks the Edit Record button I have some code to erase the last person's name and force the person doing the edit to enter their own name. Edited by: Mykal73 on 03.24.04. |
|
|
|
Mar 24 2004, 04:59 PM
Post
#3
|
|
|
UtterAccess Guru Posts: 523 From: Illinois |
Thanks, I'll try it.
Kathy |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 23rd May 2013 - 02:53 AM |