473,385 Members | 1,736 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.

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

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

✓ answered by Hat2boots

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?

7 1201
jimatqsi
1,271 Expert 1GB
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 128KB
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
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
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 Expert Mod 4TB
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
thanks Hat2boots. its relay a helpful idea. and thanks zmbd for your valuable suggestion.

Thanks a lot.
Oct 28 '15 #7
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
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
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
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
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
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
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
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
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
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
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...
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
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...

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.