473,508 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there any process to calculate the value automatically in a form field when Access

3 New Member
I want to query a filed of a table which is updated by a calculated filed of a form. but every time i have to open the form before i run the query. because the calculation programmed on form load.
Is there any process to calculate the value automatically in a form filed when access opens.??
thanks!
Oct 13 '15 #1
7 1204
jimatqsi
1,271 Recognized Expert Top Contributor
If you look in the Access Options for "current database" you will see that the database can automatically open a form when the database loads. It's as simple as that.

Jim
Oct 13 '15 #2
hvsummer
215 New Member
give jimatqsi the best answer, you just have to pick a form load at access startup in access current client option.
Oct 13 '15 #3
rahul90
3 New Member
Thanks.
But i don't want to load that form at start up. I made a switchboard for that and other forms . so its necessary to load that switchboard first.
Oct 27 '15 #4
Hat2boots
13 New Member
In a Macro Open the Form in Hidden mode then run the Query and then close Query and Form. Then your Trigger is the Macro.

Is that the direction you was wanting?
Oct 27 '15 #5
zmbd
5,501 Recognized Expert Moderator Expert
rahul90,
It's rarely a good idea to store a calculated value unless needed for something along the lines of an audit trail, ISO Documentation, or say a one time discounted price that would not normally be provided.

With that said, as Hat2boots has mentioned, the form can be opened in a hidden state. Any value that is calculated on a form either as a local/global or in an unbound control will not be available until the form is loaded. Personally, I would avoid the Access-Macro script language and do this instead via VBA; however, either will work.

Keep in mind, most of us here use VBA for the majority of the non-SQL work unless working with a SharePoint-Application and you will find much more support on the forum for VBA procedures. The Access-Macro language still has significant limitations which is why most of the experts/moderators tend not to use the language unless forced.
Oct 28 '15 #6
rahul90
3 New Member
thanks Hat2boots. its relay a helpful idea. and thanks zmbd for your valuable suggestion.

Thanks a lot.
Oct 28 '15 #7
Hat2boots
13 New Member
Okay I admit it, I am a Newby. I have been trying VBA, but at this point for me, the Macro was a little more intuitive.
Oct 28 '15 #8

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

Similar topics

4
4091
by: mitch-co2 | last post by:
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The below code works as long as I do NOT UN-COMMENT...
0
2432
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003...
1
1909
by: K. Davis | last post by:
I need to increment the maximum value of a field of a table by 1 when a form opens a blank record. (e.g. =max(!![trip_number}) so the logic and references are working at the form level. I've...
1
1249
by: dpotter7 | last post by:
I'm new to databases and currently have been given a project to create one. I have Access 2003 and it's a database that tracks the status of projects. So, my dilemma is that I want to automate...
1
1695
by: sillyr | last post by:
Hi I wanted to make a statement in a form to take a value from one field if the first field has no value. I have a form created from two tables. Each table has a field called Haul number. On the...
0
1299
by: g_k_harrison | last post by:
Hi. I've been at this database all day so this may come out muddled. I have MS Access 2000 in which I have a form with a several fields in which dollar amounts are entered. It's like this:
1
1761
by: Coladude | last post by:
Hi, I´m building a form and decided to throw myself at some Javascript, even though im definetely no expert. Thats why i now need help :-/ I´m building a fairly simple HTML form where the user...
3
3517
by: BobbyD1120 | last post by:
I have created a inventory tracking database and I want to show/hide certain fields based on the device category. The deviceCategory field is a lookup field to a table that lists all the different...
4
4275
by: nedryerson | last post by:
Hi, I'm trying to get a certain field to appear only when a value from another combobox field is selected. Specifically, when "Sample Rejected" is selected in the field "PcrLabResults," I would...
0
7323
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
7380
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
7039
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
5626
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
5050
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
4706
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
3192
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...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
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.