473,499 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prevent edit after printing a form

21 New Member
Good day everyone
please i have a form, i want it to be such that i can use vba code to print report of the form and also prevent editing after the current record of the form has been printed.
Thanks in advance
Jan 13 '11 #1
6 1776
mshmyob
904 Recognized Expert Contributor
Create a field in your table that maybe is called IsPrinted and make it a Yes/NO field.

After printing have the user verify that it printed correctly and if so then update the field in the table so it indicates that the record has been printed.

Your form would check the IsPrinted field (probably put the code in the OnCurrent event) and if it has been printed then lock the controls on the form.

cheers,
Jan 13 '11 #2
damola
21 New Member
Thanks for your prompt response
Please that is not what i want exactly
I don't want manipulation of figures after printing a report, because one can decide not to tick "is printed" and manipulate the figures later on
I want it such that as i click on print it prevent editing of the form
would be glad if any help is rendered
Thanks
Jan 13 '11 #3
Rabbit
12,516 Recognized Expert Moderator MVP
You can't do this is Access.
Jan 13 '11 #4
Rabbit
12,516 Recognized Expert Moderator MVP
Let me rephrase. You can't do this without obfuscation of the data.

If you were to encrypt all the data in the fields using a unique ID as a nonce and a private key, then you could in effect pull something like this off. You would need to use an MDE to hide the private key.
Jan 13 '11 #5
Rabbit
12,516 Recognized Expert Moderator MVP
I suppose another option would be to make a web based interface instead. In which the user would send the requests to the server. This way, no user would have direct access to the data.
Jan 13 '11 #6
mshmyob
904 Recognized Expert Contributor
Same thing only different.

Don't ask the user to confirm that it was printed correctly and just assign the value in the field as printed after clicking on the print button.

As Rabbit pointed out unless you have an MDE or encrypt the data somehow no matter that you lock the controls a person can still go directly into the database file manually and modify data directly without any forms.

But as I indicated earlier you can lock the forms and controls from editing by just checking the status of the ISPrinted flag.

cheers,
Jan 13 '11 #7

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

Similar topics

5
2300
by: Xenophobe | last post by:
I would like to use the same form for adding new records and editing existing records. New form values are contained in $_POST. Database values are contained in an associated array. It seems to me...
0
1012
by: ajay | last post by:
How can i prevent a model form from closing on click of ok button which is of model type using C# in windows form.
5
2595
by: John | last post by:
Hi If I have a form open, what is the code that is equivalent to using the File->Print menu with select record(s) option to print the form with the currently displayed record values? Thanks ...
4
3111
by: tlyczko | last post by:
I have been looking on the NGs and I found this code to show if a subform has no records. I have this code in the MAIN form OnClose event: Private Sub btnClose_Click() '4/16/06 new code that...
0
999
by: Adam Right | last post by:
Hi, I use the below code to load assembly but when i am in debug mode, visual studio does not allow me to edit and continue. It gives an message as "assembly has to be loaded". Assembly...
1
4779
by: alex.gruenther | last post by:
I am new to Access and need help creating an edit record form. I've got a table called Player with attributes like name, address, phone, etc. I've created an edit player form with a combo box...
0
1373
by: rafiki31 | last post by:
I have been hitting walls trying to find the right way to print from a web application. Here is the thing, im implementing a webapplication for a kiosk. The kiosk has its own card printer. When i...
0
1409
by: Deceneu | last post by:
Hi everyone, this is my first post so please bear with me. I have the following situation: i have a local report that needs to have two "versions": one for viewing in the report viewer (with all...
4
1852
by: cobolguy | last post by:
I have a report that I run from a Macro. This macro executes when you click the printer icon button on the form. The macro is simple: 1. open report 2. printout 3. close report . All this works fine...
0
7012
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
7225
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...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7392
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
3105
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
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
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.