I have a simple database for recording store visitors. I need to have the date textbox to always display the current date.
Lastly, after completing the data entry I want a command button that can be clicked to enter the data into the table.
Finding the exact information I need has been difficult.
Thank you
Streub
[Solved] Date textbox and "enter" button
[Solved] Date textbox and "enter" button
Last edited by streub on Sat Jan 30, 2016 11:44 pm, edited 1 time in total.
Streub
The more I learn from this forum, the more I get excited about using this strange application
The more I learn from this forum, the more I get excited about using this strange application
Re: Date textbox and "enter" button
Hi,
find attached an example. If you store a new record, the current timestamp will be set automatically.
The timestamp is not previously displayed.
It's created, if you click on "save".
To have this function, i had to execute once, via Tools/SQL ... this command:
R
EDIT: If you only want to have the current date, apply a command similar to the following to a DATE column:
find attached an example. If you store a new record, the current timestamp will be set automatically.
The timestamp is not previously displayed.
It's created, if you click on "save".
To have this function, i had to execute once, via Tools/SQL ... this command:
Code: Select all
alter table "Visits" alter column "Timestamp" set default "Current_Timestamp"
EDIT: If you only want to have the current date, apply a command similar to the following to a DATE column:
Code: Select all
alter table "Visits" alter column "date_of_visit" set default "Current_Date"
- Attachments
-
- StoreVisitors_default_Current_Timestamp.odb
- (12.4 KiB) Downloaded 168 times
- MMove 1.0.6
- Extension for easy, exact positioning of shapes, pictures, controls, frames ...
- my current system
- Windows 10 AOO, LOLinux Mint AOO, LO
Re: Date textbox and "enter" button
You are most kind providing me with your advise.
Thank you
Streub
Thank you
Streub
Streub
The more I learn from this forum, the more I get excited about using this strange application
The more I learn from this forum, the more I get excited about using this strange application