![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Are there any format to enter these as excel cell to get result of 545.50?. |
|
How to calculate form field Please any body know how to design a form with calculation on a field. How can I format the table field to get result of form field. Acturaly what I want is , when I ender numeric data to form field e.g I want to sum 5 data (125.50+200+100+45+75) for one field without calculate separately Are there any format to enter these as excel cell to get result of 545.50?. Like this = 125.50+200+100+45+75) |
#4
| |||
| |||
|
|
How to calculate form field Please any body know how to design a form with calculation on a field. How can I format the table field to get result of form field. Acturaly what I want is , when I ender numeric data to form field e.g I want to sum 5 data (125.50+200+100+45+75) for one field without calculate separately Are there any format to enter these as excel cell to get result *of 545.50?. Like this = 125.50+200+100+45+75) |
#5
| |||
| |||
|
|
"Lanka Danweem" <m... (AT) lankadanweempituwa (DOT) com> wrote *> Are there any format to enter these as *> excel cell to get result of 545.50?. This question leads me to believe you are asking a question about Microsoft Excel, not about Microsoft Access. *They are different software products, and although the VBA language is used in both, the object model and structure are quite different. The comp.databases.ms-access newsgroup is for technical discussion of, and questions and answers about, Microsoft Access. If you are asking about Excel, you would have a higher probability of getting the answer you need in a newsgroup devoted to Excel. If you are, in fact, asking about Microsoft Access, based on the information you've given, my answer would be this: Access Forms do not have Fields, they have Controls. *Forms may be "bound" to a Table or Query, specified in the Form's Record Source property, Controls may be bound to a Field from the Record Source which is specified in the Control's Control Source Property, or may be Calculated Controls according to an Expression in the Conrtol's Control Source, but cannot be both bound and calculated. *What you can do is to copy the contents of the Calculated Control to a Control bound to a Field before the Record is written. I recommend that you "Requery" the Calculated Control whenever there is a change to any factor (e.g., another Control) and at that time, copy its content to the bound Control (which need not be visible). Another approach is to put the calculation in VBA code that you execute each time there's a change to any factor, and put the result directly in the Control bound to the Field where you want that information stored -- that way, you have no need for a Calculated Control but accomplish the same purpose. Larry Linson, Microsoft Office Access MVP *Co-author: "Microsoft Access Small Business Solutions", published by Wiley *Access newsgroup support is alive and well in USENET comp.databases.ms-access "Lanka Danweem" <m... (AT) lankadanweempituwa (DOT) com> wrote in message news:0d5a0dbe-59c6-454b-a935-07b6af0ddd0e (AT) 28g2000pry (DOT) googlegroups.com... How to calculate form field Please any body know how to design a form with calculation on a field. How can I format the table field to get result of form field. Acturaly what I want is , when I ender numeric data to form field e.g I want to sum 5 data (125.50+200+100+45+75) for one field without calculate separately Are there any format to enter these as excel cell to get result *of 545.50?. Like this = 125.50+200+100+45+75) |
#6
| |||
| |||
|
|
On Aug 11, 2:05*am, Lanka Danweem <m... (AT) lankadanweempituwa (DOT) com> wrote: How to calculate form field Please any body know how to design a form with calculation on a field. How can I format the table field to get result of form field. Acturaly what I want is , when I ender numeric data to form field e.g I want to sum 5 data (125.50+200+100+45+75) for one field without calculate separately Are there any format to enter these as excel cell to get result *of 545.50?. Like this = 125.50+200+100+45+75) You can create a text box on a form. *If you open the property sheet up for the text box and give it a name of Sumit by pressing on the Other tab. *Then click on the Data tab and select ControlSource and enter: * =125.50+200+100+45+75 If you have field names * =YourFieldName1+YourFieldName2+YourFieldName3... You can now refer to it in code. * msgbox "Sum is " & Me.Sumit |
#7
| |||
| |||
|
|
This really depends if you are summing inside a single column, or across multiple columns. If it is across multiple columns (fields) then you will have to write the summing either directly in the SQL, or calculate is locally in the forms code once the data is available. If you are summing inside a single column of data then the SQL Sum() function should give you what you want. -- Cheers The Frog |
#8
| |||
| |||
|
|
On Aug 11, 11:15*pm, Patrick Finucane <patrickfinucan... (AT) gmail (DOT) com wrote: On Aug 11, 2:05*am, Lanka Danweem <m... (AT) lankadanweempituwa (DOT) com> wrote: How to calculate form field Please any body know how to design a form with calculation on a field.. How can I format the table field to get result of form field. Acturaly what I want is , when I ender numeric data to form field e.g I want to sum 5 data (125.50+200+100+45+75) for one field without calculate separately Are there any format to enter these as excel cell to get result *of 545.50?. Like this = 125.50+200+100+45+75) You can create a text box on a form. *If you open the property sheet up for the text box and give it a name of Sumit by pressing on the Other tab. *Then click on the Data tab and select ControlSource and enter: * =125.50+200+100+45+75 If you have field names * =YourFieldName1+YourFieldName2+YourFieldName3... You can now refer to it in code. * msgbox "Sum is " & Me.Sumit Thank, yes I'm doing it same. but I thought it may can do like MS excel.- Hide quoted text - - Show quoted text - |
#9
| |||
| |||
|
|
On Aug 11, 11:15*pm, Patrick Finucane <patrickfinucan... (AT) gmail (DOT) com wrote: On Aug 11, 2:05*am, Lanka Danweem <m... (AT) lankadanweempituwa (DOT) com> wrote: How to calculate form field Please any body know how to design a form with calculation on a field. How can I format the table field to get result of form field. Acturaly what I want is , when I ender numeric data to form field e.g I want to sum 5 data (125.50+200+100+45+75) for one field without calculate separately Are there any format to enter these as excel cell to get result *of 545.50?. Like this = 125.50+200+100+45+75) You can create a text box on a form. *If you open the property sheet up for the text box and give it a name of Sumit by pressing on the Other tab. *Then click on the Data tab and select ControlSource and enter: * =125.50+200+100+45+75 If you have field names * =YourFieldName1+YourFieldName2+YourFieldName3... You can now refer to it in code. * msgbox "Sum is " & Me.Sumit Thank, yes I'm doing it same. but I thought it may can do like MS excel. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |