Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to split date and time in datasheet

Status
Not open for further replies.

projecttoday

Programmer
Feb 28, 2004
208
US
I am trying to create a datasheet subform which is bound to a table which has a date/time field in it. What I want to do is split the date/time field into 2 cells on the form, one for date and one for time while at the same time updating the single field in the table. So for the date portion, if I use =iif([flddatetime],"",[flddatetime]) as the record source combined with a format of Short Date, it displays okay but the cell is not enterable. If I move it to the default value of the control, the same wrong value appears in every row. Anybody have any suggestions on how to manipulate date/time parts on a datasheet?
 
I am not optimistic that you could do this. The date and time text boxes would need to be unbound. These would all display the same value for every record in the form. You would need code to update the bound datetime text box.

Duane
Hook'D on Access
MS Access MVP
 
So if I make an entry into an unbound textbox, it propagates throughout the rows? Is there any way to prevent that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top