473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Locking Form and Subform

I have form Orders and Subform Technical info. The Ordrs form is
connected to query (multiple table) and the Technicl subform is
connected to one table. I have divided the technical table into
multiple subforms and each subform has its owm fields according to the
workflow in the company. Creating technical information is first form,
then filling dispatched serial numbers to the dispatched material is
another subform and then adding field measurements is another form. All
these subforms are related to one technical order in the order table. I
want to know how can i lock the fields per action or workflow. It would
be helpful if you can elabrate with examples. Thanks.

May 10 '06 #1
1 1853
On 10 May 2006 02:43:09 -0700, "Moha" <me*******@gmail.com> wrote:

I'm thinking you mean to say that once the first subform is filled out
(and the status is set to the next stage), the data cannot be modified
anymore. That sounds like one line of code:
Me.AllowEdits = (Status <> FirstStageStatus)
You may need to put this line in several events. Quick and Dirty would
be to put it in Form_Current.

-Tom.

I have form Orders and Subform Technical info. The Ordrs form is
connected to query (multiple table) and the Technicl subform is
connected to one table. I have divided the technical table into
multiple subforms and each subform has its owm fields according to the
workflow in the company. Creating technical information is first form,
then filling dispatched serial numbers to the dispatched material is
another subform and then adding field measurements is another form. All
these subforms are related to one technical order in the order table. I
want to know how can i lock the fields per action or workflow. It would
be helpful if you can elabrate with examples. Thanks.


May 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
12
by: swingingming | last post by:
Hi, in the NorthWind sample database, when clicking on the next navigation button on the new order record with nothing on the subform (order details), we got an order with nothing ordered. How can...
8
by: ken | last post by:
Hi, I have a form that depending on certain criteria locks all of the subforms on this form. The problem is when the code unlocks the subforms their "allowedits" "allowdeletions" and...
10
by: Ami | last post by:
Hello everyone, I have developed a small access application and now I need to lock my forms against unwanted edits. I have used the code by Allen Browne I found here...
4
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form...
6
NeoPa
by: NeoPa | last post by:
Introduction The first thing to understand about Sub-Forms is that, to add a form onto another form takes a special Subform control. This Subform control acts as a container for the form that you...
3
by: eyalco | last post by:
I'm creating an invoice software (access 2000) in which most of it is over. Need to consult which is the best way to lock form and subform after saving and printing. The code I think of using is :...
0
by: Andy_Khosravi | last post by:
I'm having issues with updates being blocked due to some sort of record locking issue. The error does not occur consistently, so I've had a hard time nailing it down. It does happen enough to cause...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.