[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Search / Input Unique Date in Delphi 1.0

I want the user to enter a date mm/dd/yyyy.  If it is in a table, let them know and return to previous form.  If date is not on file, append a record to a table, put the search date in the date field and bring open a form in the edit mode.  I am new to Delphi so please be very specific with your answers.  I used a maskedit box for input.  Used findkey to search the table and MessageDlg to tell user date is on file but have problems when date is not on file and I try to put the input date in the table (Table1DateField := EditMask1.)  HELP!!

John C.
0
ncglea
Asked:
ncglea
1 Solution
 
mvz121697Commented:
Table1.Insert;
Table1DateField.asdateTime:=StrToDateTime(maskedit1.text);
Table1.post;

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now