Hello again! I am trying to get dates to display and post correctly in a dataset. In my database table I have two fields AppearanceDate and MailDate. I have a query that returns this information into a dataset. I have a DBGrid on my form that displays the AppearanceDate and allows entry of the MailDate. I have a GetText handler for AppearanceDate that converts the database format (YYYYMMDD) and displays a proper US date format of MM/DD/YYYY (this is done by two functions DateFormat - changes to MM/DD/YYYY and ConvertDate - changes to YYYYMMDD). When the user enters a MailDate I have a Validate handler (IsValidDate). If the user has entered a Valid date I need to take the entry (MM/DD/YYYY) and convert it to YYYYMMDD before posting to the database. I have tried TField.OnGetText, but that runs prior to the validation (and continues in a loop forever!). I tried BeforePost in the query, but I couldn't get that to work either. What do I need to do to continue to display the user entered MailDate as MM/DD/YYYY but post my data in the correct YYYYMMDD format?
Thanks for any suggestions!
Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
Thanks for any suggestions!
Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned