I've created some fields that calculate future dates. The way they are
set up they do not save to a table. This is the expression I used
(=DateSerial(Ye ar([IFSPOrginal]),Month([IFSPOrginal])+6,Day([IFSPOrginal]).
I placed it in the Control Source property. I want to save them to a
table so I can use them on a report.
So the 2 questions are:
1. How do you use a calculated field that doesn't save to a table in
a report?
2. If you have to save it to a table to use it in a report, where do
I put the expression so it does the calculation other than control
source property?
Thanks
Mark 6 2276
On 26 Feb 2004 11:04:52 -0800, Mark Lees wrote: I've created some fields that calculate future dates. The way they are set up they do not save to a table. This is the expression I used (=DateSerial(Ye ar([IFSPOrginal]),Month([IFSPOrginal])+6,Day([IFSPOrginal]). I placed it in the Control Source property. I want to save them to a table so I can use them on a report.
So the 2 questions are:
1. How do you use a calculated field that doesn't save to a table in a report?
2. If you have to save it to a table to use it in a report, where do I put the expression so it does the calculation other than control source property?
Thanks Mark
Regarding #1, above:
You don't save the calculated field to a table, you repeat the same
calculation in the report.
As long as your table contains the data in the fields used in the
calculations, that's all you need.
Regarding #2, above:
See my response to #1.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Mark Lees wrote: I've created some fields that calculate future dates. The way they are set up they do not save to a table. This is the expression I used (=DateSerial(Ye ar([IFSPOrginal]),Month([IFSPOrginal])+6,Day([IFSPOrginal]). I placed it in the Control Source property.
I want to save them to a table so I can use them on a report.
You may assume that a report can be built on a table only. That is not
the case: you can use a query as source for the report. That happens to
be frequent use.
So the 2 questions are:
1. How do you use a calculated field that doesn't save to a table in a report?
In a query. Or, immediately on the report: ou can set the controlsource
of report fields just as you set them in forms.
2. If you have to save it to a table to use it in a report, where do I put the expression so it does the calculation other than control source property?
It is so much advised against, that I couldn't even provide a technical
answer. Just don't store the calculated value.
--
Bas Cost Budde http://www.heuveltop.org/BasCB
but the domain is nl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
First off, you can use the DateAdd() function to add 6 months to the
date value IFSPOriginal:
DateAdd("m", 6, IFSPOriginal)
If the date IFSPOriginal is saved to the table you can use the same
function in the report. Use an unbound TextBox and set its
ControlSource to this:
=DateAdd("m", 6, [IFSPOriginal])
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQD5KIoechKq OuFEgEQJboQCgyH xsDYcCz9HnP2q6v zEm30pnwF4An27A
fhqZr+nTo3uqW7Y 56SvTL5XF
=LrYG
-----END PGP SIGNATURE-----
Mark Lees wrote: I've created some fields that calculate future dates. The way they are set up they do not save to a table. This is the expression I used (=DateSerial(Ye ar([IFSPOrginal]),Month([IFSPOrginal])+6,Day([IFSPOrginal]). I placed it in the Control Source property. I want to save them to a table so I can use them on a report.
So the 2 questions are:
1. How do you use a calculated field that doesn't save to a table in a report?
2. If you have to save it to a table to use it in a report, where do I put the expression so it does the calculation other than control source property?
MGFoster:
Thanks for the help. However if I set it up with the DateAdd function
it asks me for a parameter value and bases the results from the
parameter value and not the one stored in IFSPOrignal.
MGFoster <me@privacy.com > wrote in message news:<PS******* **********@news read2.news.pas. earthlink.net>. .. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
First off, you can use the DateAdd() function to add 6 months to the date value IFSPOriginal:
DateAdd("m", 6, IFSPOriginal)
If the date IFSPOriginal is saved to the table you can use the same function in the report. Use an unbound TextBox and set its ControlSource to this:
=DateAdd("m", 6, [IFSPOriginal])
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net Oakland, CA (USA)
-----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv
iQA/AwUBQD5KIoechKq OuFEgEQJboQCgyH xsDYcCz9HnP2q6v zEm30pnwF4An27A fhqZr+nTo3uqW7Y 56SvTL5XF =LrYG -----END PGP SIGNATURE-----
Mark Lees wrote:
I've created some fields that calculate future dates. The way they are set up they do not save to a table. This is the expression I used (=DateSerial(Ye ar([IFSPOrginal]),Month([IFSPOrginal])+6,Day([IFSPOrginal]). I placed it in the Control Source property. I want to save them to a table so I can use them on a report.
So the 2 questions are:
1. How do you use a calculated field that doesn't save to a table in a report?
2. If you have to save it to a table to use it in a report, where do I put the expression so it does the calculation other than control source property? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Billy Jacobs |
last post by:
I have created a DataGridColumnDatePicker Component so
that I can put a datetimepicker control in my datagrid.
It almost works.
When I put my mouse in the cell it changes to a
datetimepicker control. I can then select a date which
displays in the cell. When I leave the cell however I get
the following error:
|
by: Cro |
last post by:
Hello Access Developers,
I'd like to know if it is possible to perform a count in an expression
that defines a control source.
My report is based on a query. In my report, I want a text box to
display the number of times a certain value appears in a certain field
(i.e. perform a ‘count'). I will be doing this for many values in many
fields so do not wish to have scores of queries to build my report.
|
by: Bob |
last post by:
I've got a bound report with a query as the record source. I'm adding
a total to the footer and have inserted a text box to display it. I'm
attempting to set the control source of the text box to a different sum
aggregate query using the expression builder. When I select the query
and it's single field, single row field it inserts the following in the
control source box for the text box.
=!
I've tested the query (...
|
by: Shane O. Pinnell |
last post by:
I am sure this has come up before, but I haven't been able to find an answer as of yet. That said, any help is definitely appreciated!
I have a datagrid populated from a dataset. I have a TemplateColumn with a DropDownList (DDL) in the FooterItemTemplate that is populated in the Page_Load event using a Sub Routine as the DataSource of the DDL. The FooterItemTemplate's DDL populates as expected when the DataGrid's DataBind method is called.
...
|
by: Tom Rowton |
last post by:
This one has me a bit confused and I'm not finding what I
need in the MSDN or by searching these forums, so here
goes...
I have a rather large, complex code-in-page WebForm
(don't ask) and a section of that Form is 4 or 5
ASP:Panels pretending to be a set of Tabs, each with its
own section of the form.
| |
by: moondaddy |
last post by:
I have a user control being used instead of a frame page. when the user
clicks on a menu item I need to send the ID (integer value) of that menu as
a parameter in the postback of the user control which will be used to query
sql server to repopulate the datagrid in the user control.
I also wrapped the user control in a panel element so I could position it on
the page.
I'm clueless on how to get started with this.
|
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 being updated by some other process through remoting.
When the page loads, I init the tree, and in my browser I can see the
initialized tree.
The problem is that every time that I receive update to tree from the
remote process,
|
by: nate |
last post by:
the error returned is this:
Server Error in '/AnnAccRpt' Application.
--------------------------------------------------------------------------------
Could not find control 'DropDownList1' in ControlParameter 'DropDownList1'.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
|
by: fernandezr |
last post by:
I would like to use a user control as a template inside a repeater.
Some of the fields in the control should be hidden depending on whether
or not there is data. I'm still a ASP .Net newbie so the way I'm going
about doing this might be a little off. I'd appreciate some help.
Below is the code I have thus far but I'm not sure how to reference the
user control within the foreach loop.
<asp:Panel ID="pnlRosterProfile" runat="Server" />
|
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 so I get the ObjectDataSource. No problem
.....
ObjectDataSource src = .... //is ok i have it
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |