Hello
I have a form where the user enters some pricing information. I need to store in the pricing table (fields time and date) the time and date WHEN the information was entered, so that later the user can print a report with these forms and can see EACH form at what time and date it was ORIGINALLY created/modified.
So far i added two textbox to the form with time and date that show the CURRENT time and date, but when i try to print the report, EVERY form displays the time and date at the time of the printing (current time) not the time they were created. Like a "HISTORY".
How can this be done???
6 5687
Hi
In the table, you can set the date/time field's default value to =Now()
This way, whenever a record is created, its creation time is automatically written in the date/time field in the table.
You need to make date/time field of Date/Time type.
Qi
Hello
I have a form where the user enters some pricing information. I need to store in the pricing table (fields time and date) the time and date WHEN the information was entered, so that later the user can print a report with these forms and can see EACH form at what time and date it was ORIGINALLY created/modified.
So far i added two textbox to the form with time and date that show the CURRENT time and date, but when i try to print the report, EVERY form displays the time and date at the time of the printing (current time) not the time they were created. Like a "HISTORY".
How can this be done???
Hi
In the table, you can set the date/time field's default value to =Now()
This way, whenever a record is created, its creation time is automatically written in the date/time field in the table.
You need to make date/time field of Date/Time type.
Qi
Thanks for the reply.
I cant get it to work. They just appear BLANK, no errors no nothing.
I have in table fields:
time as date/time format long time
date as date/time format medium date
both with default value: =Now()
and in the form textbox:
name: time
control source:time
name:date
control souce:date
Gilberto
When a new record would be entered then your time and date fields would be filled with the values. These fields wouldn't fill up for your old records.
On your form, when you enter the details and click on Save button (if you have one) or by whatever method you save the datain the table, the data will be saved and the current time at save will also be added in your table automatically.
Hope it helps.
Qi
Thanks for the reply.
I cant get it to work. They just appear BLANK, no errors no nothing.
I have in table fields:
time as date/time format long time
date as date/time format medium date
both with default value: =Now()
and in the form textbox:
name: time
control source:time
name:date
control souce:date
Denburt 1,356
Recognized Expert Top Contributor
Thanks for the reply.
I cant get it to work. They just appear BLANK, no errors no nothing.
I have in table fields:
time as date/time format long time
date as date/time format medium date
both with default value: =Now()
and in the form textbox:
name: time
control source:time
name:date
control souce:date
First Date is a reserved word as well as Time is a reserved word they are used as a function like so Date() This retrieves todays date. Never use a reserved word for field names in a table, query, or control names in a form etc. Change those names up maybe you can use dated or myDate as a field name in your table etc. they may be confusing MS Access. Once you have completed that then what you have set up should be sufficient to fill a new record with the current date/time info
First Date is a reserved word as well as Time is a reserved word they are used as a function like so Date() This retrieves todays date. Never use a reserved word for field names in a table, query, or control names in a form etc. Change those names up maybe you can use dated or myDate as a field name in your table etc. they may be confusing MS Access. Once you have completed that then what you have set up should be sufficient to fill a new record with the current date/time info
Thanks it works perfectly now.
Denburt 1,356
Recognized Expert Top Contributor
Thanks it works perfectly now.
That's great, nice job QuestionIt!
Remember, it is usually the little things that will cause you the biggest pains.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Jack |
last post by:
Hi,
I need to build a asp page where it would serve as a data entry record page
as well as display page for records saved. This page should also allow
editing of records that has been saved.
e.g.
SAVEBUTTON
SS# EntryBox Name EntryBox Date EntryBox Revenue Generated EntryBox
|
by: Stuart McGraw |
last post by:
I haven't been able to figure this out and would
appreciate some help...
I have two tables, both with autonumber primary
keys, and linked in a conventional master-child
relationship. I've created forms for both those
tables, and inserted the child table form into the
master table form as a subform. It works just as
it is supposed to, in that I can create a new master
record, and then add detail records.
|
by: Robm |
last post by:
Since googling this issue only brings up the April fool's problem, which was
solved years ago, I hope that somebody can help me with this. I have a large
vc++/mfc application which needs to know when DST is in effect. This has
been working fine for years, but I am worried about the upcoming change in
2007 in the US, which will be followed by a number of Canadian provices
(where my application is used). The function that I use is very...
|
by: debi.robarts |
last post by:
Ok, in my database I have something like this:
Date One
# of Days to Next Date
These calculate a field "Date Two."
Because "Date Two" is an expression (calculated by the form), I can't
set the control source to save to a field in my table. How can I save
that value to my table?
|
by: mcca0081 |
last post by:
hi - i'm trying to delete one of the duplicate records based on the
most current date.
here's the code for my access 2000 db. any help would be
appreciated!!! - thank you kindly
Sub DeleteDuplicateRecords()
' Deletes duplicates from the specified table, keeping the most
current received date record.
' No user confirmation is required.
| |
by: Steve Rainbird |
last post by:
Is there a way in DB2 I can get the current date and time formatted.
In Oracle I could do the following
select to_char(sysdate,'yyyymmdd') from dual
returns
20070718
|
by: RobG |
last post by:
I was investigating a function to determine whether daylight saving
was being observed on a particular date (given the platform's regional
settings) and came across a suggestion at merlyn.com to test the time
zone offset on a variety of dates to see if it changes. Based on
that, I developed the following checkDST() function which, as far as I
can tell, should be sufficient.
It checks either the date passed to it or the current date with...
|
by: =?Utf-8?B?UGhpbCBKb2huc29u?= |
last post by:
Hi,
I have a web application that will be hosted on servers with timezones
configured to EST with daylight saving.
My application takes an XML datafeed that contains times in GMT (also with
daylight saving that will change on different dates to EST)
Is there any way within the .net framework to convert the current time from
the server (which will be EST with daylight saving) to GMT?
|
by: THEAF |
last post by:
i'm trying to create a reminder form, when i add a new reminder its ok but when i try to delete a reminder then i get No Current Record problem.
Form Load
Private Sub Form_Load()
Dim s() As String
Dim ListTime As String
Dim ListDate As String
Dim i As Integer
Set dbReminder = OpenDatabase(App.Path & "\Password.mdb")
Set rsReminder = dbReminder.OpenRecordset("Reminder", dbOpenDynaset)
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |