473,421 Members | 1,500 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,421 software developers and data experts.

Disable Print Button

I have a Form that has a query and in the "Split Form" Default View that can be edited the main table. I am selecting the values that I want to include in printing using Checkbox. If you save it and close the form, the selected values will not show if ever the form will be opened again. I want to disable the print button if there is no values on the "Split Form Datasheet" so that the user won't be able to print it again because on the print view it will show again the selected values. I want to restrict the reprinting it twice. I read and research about this but all of the codes are not applicable. Thank you in advance for those who can help me.
Oct 26 '21 #1
2 7002
NeoPa
32,556 Expert Mod 16PB
Hi Darius.

First - Welcome to Bytes.com.

I have to admit to being quite confused. You use the word "It" many times in your explanation, but unfortunately it really isn't clear in most cases what the "It" refers to.

Perhaps you could edit your original post to explain your situation a little more clearly.

I'm sure once the question is clear there will be many who'd like to help you.
Oct 26 '21 #2
GazMathias
228 Expert 128KB
Hi Darius9023,

Unfortunately, you have not painted a very clear picture. I can guess what you are trying to achieve though.

Do your records have a printed flag?

If they do then whatever routine is actually responsible printing should be amended to respond to that flag:

This is kinda how I would do it:

>>PrintButton.Click
For rows
Store ID in array / delimited string for checked rows.

If IDs
Call print management function, passing IDs
Query rows in ID list where printed = false (I would use GetRows for this).
When not EOF
For rows
Print
Update printed flag.

Alternatively, rework that slightly to update all printed rows when printing has finished, if it gets locky.

If I'm barking up the wrong tree then you should post the content of your print click event so we have a better idea about what's going on in your solution.

Gaz
Oct 27 '21 #3

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

Similar topics

5
by: Vern | last post by:
I would like to disable a button on the form if the user is not authorized to use it. I've created a custom button and would like for each button to know if it should be enabled or disabled...
1
by: microsoft | last post by:
I am looking for code for a button on a website, and I want it to prevent users from clicking more than once while their request is being processed. I would like it to disable or hide the button...
2
by: blarfoc | last post by:
Hi, I have to disable a button on a aspx page after the user clicks it. I have to disable the button with javascript because the process takes 20 seconds to run the full course. I kno I need to...
6
by: jack-e | last post by:
Hi, Can someone please provide me with an example of how to disable the submit button once clicked (using javascript i guess). Keep in mind I also have to invoke a server side function which...
16
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
8
by: GS | last post by:
Hi, This is probably known solution but I have not found it in minimum amount of code. I'd like to disable button on client-side after clicking on it. Just disabling it in javascript do not...
1
by: hexagram | last post by:
hi can anybody here help me on my problem the condition is if the form is blank or incomplete or not save the print button is disable, otherwise if the form is fill up complete and saved the...
3
by: flip345 | last post by:
dear all, I want to disable print button in case text box are empty please advise because i am prety unfamiliar with visual basic please please thanks
5
by: Sangam Uprety | last post by:
Most of the times we wish to disable the asp.net button control just after the first click so that we may prevent multiple postbacks. This is sensitive work since multiple posting may cause multiple...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
1
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
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
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
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...

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.