473,462 Members | 1,098 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can you have a user not be able to change anything on a form afterup date?

I have user inputing info in a form

I want to input data ,then update the data after form is updated the user can no longer edit what he has done. when the user goes back to the form the user cant change things..
Feb 1 '11 #1
7 1420
TheSmileyCoder
2,322 Expert Mod 2GB
Look at your forms properties and set:
Expand|Select|Wrap|Line Numbers
  1. AllowEdits:     No
  2. AllowDeletions: No
  3. AllowAdditions: Yes
  4. DataEntry:      Yes
Feb 1 '11 #2
thank you that works,but what if you want to keep one record open to edit.
Feb 1 '11 #3
TheSmileyCoder
2,322 Expert Mod 2GB
I need a more precise explanation of your requirements.
Feb 1 '11 #4
a user inputs data in a form after update nothing can be changed in the fields except one field.
Feb 1 '11 #5
A form afterupdate, form fields cannot be changed except for one field.
Feb 1 '11 #6
TheSmileyCoder
2,322 Expert Mod 2GB
You need to be precise with your words, because in post 3 you talk about keeping 1 record open to edit, and in posts 5 and 6 you talk about a field. A field is a column in a row/record.

Now, this code in the Current Event of your form should accomplish what you want (or atleast what you have described). You will of course have to replace the field names as appropriate.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Current()
  2. 'The fields you want to disable
  3.  Me.Field1.Enabled=Me.NewRecord
  4.  Me.Field2.Enabled=Me.NewRecord
  5.  
  6. 'The field you want to keep open
  7.  Me.Field3.Enabled=Not Me.NewRecord
  8. End Sub
Another option is to use Field.Locked property. Its a matter of taste. Play around and see what suits you.
Feb 2 '11 #7
I do apologize if I wasnt clear. I have a form that the user can input data. If the user goes back to the data he previously inputed, he can only change one record and the other fields are disabled. When the user goes back to a new record,it should allow them to type in all the fields and so on.
Feb 2 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: wil | last post by:
Dear All, In the linux platform, is there anyway I can in a C program change the file create date? Thanks, wil.
5
by: Ram | last post by:
Hey, I'v managed to set the "User Must Change Password At Next Logon" flag on the LDAP protocol, Using the - "pwdLastSet" property - by setting it to - "0" (for on) or - "-1" (for off). The...
1
by: George LAZAR | last post by:
how can I change the system current date (time) using c#? thank you George
2
by: adbarnet | last post by:
Hi, I'm a C++ developer coming fresh to c# for GUI development. For the project I'm working on, I need a specialised control (a treeview derivative) which would be very useful in other...
0
by: andy | last post by:
I have user controls(.ascx) programmed to function as modules on the same page - default.aspx. As you would be well aware, default.aspx has the normal html stuff:- <%@ Page language="c#"...
3
by: Tom | last post by:
Hi, I have a web page which has server side include for top, left, main and bottom.aspx pages. In the left.aspx, there is a login web control which has a pair of form tags. In the main...
0
by: CLEAR-RCIC | last post by:
I'm having problems reading the "user cannot change password" flag in the userAccountControl collection of Active Directory. The userAccountControl property is 512 (on a normal account) before...
3
by: terrychangsharp | last post by:
I think this must be easy but, alas, I can't find it! Is there any function I can use to change a file's date/time?
1
by: Anwesha | last post by:
Hi, i have a problem while working with .net 2005. i have a situation where i have to change the form id which takes 'form1' by default. it donot allow me to change the id form the property...
1
by: qvklm1 | last post by:
I have a form where the user can add different criteria. Then, also on that form, I have a listbox with all possible items. When the user changes the criteria, I want to indicate in the listbox...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.