473,503 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

preventing changes to record

In an app I have orders are entered into sunsaletbl - through a form.

When the invoice section is entered all records in the sunsaletbl are
grabbed and put into invtranstbl and marked in sunsaletbl.

This all works fine.

However if for example on delivery the customer only takes 5 bottles instead
of 10 ordered, i advise users to enter a new record of -5.

However some insist on making a change in sunsaletbl and because the record
has already been sent to inv that change does not go to invoice

I think the way to fix this is to prevent changes to the record if the
gonetoinv is yes.

Appreciate advice on how to do this
TIA

David B
Oct 28 '06 #1
2 1601

"David B" <da***@marleycote.fsnet.co.ukwrote in message
news:3I********************@bt.com...
In an app I have orders are entered into sunsaletbl - through a form.

When the invoice section is entered all records in the sunsaletbl are
grabbed and put into invtranstbl and marked in sunsaletbl.

This all works fine.

However if for example on delivery the customer only takes 5 bottles
instead of 10 ordered, i advise users to enter a new record of -5.

However some insist on making a change in sunsaletbl and because the
record has already been sent to inv that change does not go to invoice

I think the way to fix this is to prevent changes to the record if the
gonetoinv is yes.

Appreciate advice on how to do this
TIA

David B
This seems to work -

If Me.Text52 = 0 Then
AllowEdits = True
Else
AllowEdits = False
End If

Any probs doing it this way ?
DB
Oct 28 '06 #2
"David B" <da***@marleycote.fsnet.co.ukwrote in
news:Mt******************************@bt.com:
>
"David B" <da***@marleycote.fsnet.co.ukwrote in message
news:3I********************@bt.com...
>In an app I have orders are entered into sunsaletbl - through
a form.

When the invoice section is entered all records in the
sunsaletbl are grabbed and put into invtranstbl and marked in
sunsaletbl.

This all works fine.

However if for example on delivery the customer only takes 5
bottles instead of 10 ordered, i advise users to enter a new
record of -5.

However some insist on making a change in sunsaletbl and
because the record has already been sent to inv that change
does not go to invoice

I think the way to fix this is to prevent changes to the
record if the gonetoinv is yes.

Appreciate advice on how to do this
TIA

David B
This seems to work -

If Me.Text52 = 0 Then
AllowEdits = True
Else
AllowEdits = False
End If

Any probs doing it this way ?
DB
It's good practice to prefix the allowedits property with the
full name of the form or the Me. qualifier

You can even simplify the whole thing to a single line:
Me.AllowEdits = (me.text52=0)

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 28 '06 #3

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

Similar topics

3
3146
by: Fred | last post by:
Hi out there, I have problems finding a way to warn a user that another user intends soon to update the same specific row. Let me explain. User 1 get to a JSP "update customer record" page....
15
26407
by: Bob | last post by:
I need to apply a border to a table's columns, but not to the columns of tables nested within (I realize nested tables are bad form, it's a client request). I can't control what goes inside this...
8
2305
by: CJM | last post by:
How do people go about preventing the user from submitting a form for a 2nd time? For example, the user submits a form, clicks on the back button, and the submits the form again. I have used...
11
14029
by: EoRaptor | last post by:
I`m exporting data from many Lotus Notes databases to a DB2 database using LotusScript. The LotusScript agents commit after EACH update/insert. Nevertheless, I keep getting transaction rollbacks on...
0
868
by: Doc Dunning | last post by:
Hi all, This seems such a simple problem to me but I can't find the answer after *much* searching. I have an application using bound controls to browse / update a database table of club...
3
1261
by: helpful sql | last post by:
Hi, I am working on an app that will display the list of all scheduled call records in our database to the users. All users of the application will see the same list of call records and will...
1
1587
by: jonefer | last post by:
What is the best mechanism/ convention for preventing stacked datagrids from overlapping each other? I'd like to do something similar to a "can shrink/can grow" in an Access report for an aspx...
30
3354
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
5
5163
by: vovan | last post by:
I have set of controls (Textboxes, checkboxes etc) along with the Grid on Windows Form. I use BindingSource to populate both Grid and the set of Controls. User selects the record in the grid and...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7357
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
7468
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
5598
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,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4690
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
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.