473,385 Members | 2,029 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.

Control source

7
hey i am having difficulties
basically i have 4 frilds named:
1)sub total-( this is the total not including the vat)
2) VAT-( this is wther the vat is 0.00 or 0.175) 0.175 being the vat rate we use in the UK.. for this feild i created a drop down list which consisters of :
0.00
0.175
3) VAT (T1)- Vat (t1) is the sum of sub total * VAT
4) Total including VAT- (this is the sum of sub total + VAT(T1)

ok in the control source for VAT T1 i entered the following as my formula :
=[sub total] * [Vat]
for my total including vat feild i entered this formula:
=[sub total] + [VAT (T1)]

now in my forms these formulas seem too be working perfectly fine
however wen i go bak to my table ... both VAT (T1) and TOTAL INCLUDING VAT come up as 0.00 :S:S
maybe i am writing the formula wrong? also for the feild VAT it is a drop down box so am not sure .. if this changes anything
please could anyone kindly get bak to me as i am indeed struglling
regards Noor
Aug 4 '08 #1
4 1258
missinglinq
3,532 Expert 2GB
First off, it is seldom necessary or advisable to store calculated values in a table. This wastes disk space and increases work time; a retrieval from disk will almost always take longer than a calculation done on the fly, and this is certainly true in this case. You simply re-calculate when needed. You can either do this in a form as you've done here, or in a report or underlying query. So you should delete the field from your table, and from your query, if you're using one as the record source for your form.

But you do need to have the VAT value stored! Otherwise, you won't be able to do the re-calculation mentioned above. In Design View for your form, you need to select the VAT combobox by clicking on it, then got Properties - Data and click in the Control Source box, then select the name of the field in your table that you want to hold the VAT. Now you should find that the VAT will be stored.

Welcome to Bytes!

Linq ;0)>
Aug 4 '08 #2
nawara
7
hey thnks for ur reply.. is it posible u cud send me a data base sample bcz i honestly didnt get wat u werr saying lol
sorry am fairly new to access please be patient with me
regards Noor
Aug 4 '08 #3
missinglinq
3,532 Expert 2GB
I'm sorry, if the simple instructions I've given you are beyond your comprehension, sending you a sample database won't be of any use to you either! You'd still have to do the same things I've already told you!

And in the future, please refrain from using "texting" abbreviations in your post. It's annoying and is not considered acceptable behavior here.

Linq ;0)>
Aug 4 '08 #4
Stewart Ross
2,545 Expert Mod 2GB
Hi Noor. This site is staffed by volunteers who willingly try their best to assist others with Access issues, but we cannot do the work for you - you have to be able and willing to experiment and try out the advice you are given. It is not acceptable to request sample databases for simple requests - particularly when you clearly have not implemented the advice on much the same topic given in response to your first post linked here.

Linq is right to call time on your request here, and to point out that the use of textspeak is not acceptable on this site. For many readers for whom english is not their first language such abbreviations are impossible to read - please do not use them here.

-Stewart
Aug 4 '08 #5

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

Similar topics

0
by: Brett Gerhardi | last post by:
Hi all, I'm having a nightmare with Windows Installer projects and souce control. My situation is that I have a few related windows application / dlls, some generic shared library files and a...
4
by: Nicholas Then | last post by:
I am writing an ASP.NET application and I have a class that I have written to create a vCard...it just returns a string with all the necessarry info... Anyway...is there a way that I can create a...
2
by: RSB | last post by:
Hi Every one, I am currently using Visual Studio .Net and trying to open a project from SourceSafe and once i open the project for the first time i get the following error/warning... "The...
1
by: Roger | last post by:
I've got a continuous form based on a query the first 2 controls on the form are bound to columns in the query a third control (paymentAmount) is unbound I have a total control in the footer,...
1
by: Vladimír Kolesnik | last post by:
Hi, there we need help concerning setting project under source control. We want to have a project on the server, and developers in the local network working on this project. We decided to use...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
0
by: Don | last post by:
I have a page that has several controls on it and the controls are shown or hidden during postback. I show and hide them using the visible property. When I use 'view source' in Internet Explorer...
4
by: Dave Calkins | last post by:
I have a native Win32 C++ app built with Visual Studio 2005. I'd like to make use of a property grid control in this app. For an example of this, in Visual Studio, see the properties control...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
3
by: şa¤Ö | last post by:
We are developing ASP.NET web application and using Visual source safe (VSS) to control our source code We developed a user control and it will been used by different project. I know there have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.