Dick7Access
Dick S
- Local time
- Today, 16:07
- Joined
- Jun 9, 2009
- Messages
- 4,325
Dick:
Is this what your look for?
![]()
Thank you a whole bunch,
What is the advantage to using this method verses using autoexec?
Dick:
Is this what your look for?
![]()
you'll notice that the AutoCorrupt option is turned off.
Here it is again. This time I changed the name to avoid confusion.
Check your references and see if one is marked missing. Nothing in the app needs the latest version of Access so just choose the proper library for your version. In fact, if you convert the app to an .mdb, it should still work.
Deliberate. This is a dangerous feature. I know how it works and yet it still gets me if I accidentally leave it on.
My suggestion – leave Name AutoCorrect turned off. Then when you need to make changes to the names of objects and you want to take advantage of the help Name AutoCorrect offers, turn it on. Make the changes, open all affected objects, turn it off.
Thanks, I have so much to learn, but loving it.There is a field named WhenEaten. It is in tblMealLog. it contains both date and time. Separating date and time into two fields only adds complexity so I don't do it, especially when creating something for myself. Creating something for someone else, I might have done something different.
If you have to have them separate, then you have to add a new field to tblMealLog and a new control to frmMealLog and change the format of WhenEaten to show only short date. The time control would have a format of short time. qMealDetailEntry does not include tblMealLog so it does not need to be modified.
PS - adding formats to the table simply hides the actual table contents and will eventually lead to confusion so I never format table columns. I only use formats on controls and only if necessary. So in this case, you want to restrict WhenEaten to a date and TimeEaten to time so you would use short date as the format - NEVER a specific date format. That leads to other problems especially if your date format is not US standard m/d/y
I know that. Look at the WhenEaten field. You will see that it includes the date AND the time.I have to tract the time of day that I eat ever meal.
Sorry, I left out a field when I made the unique index.
Open tblMealLog in design view and if the indexs are not showing, press the indexes icon on the Design tab. The UniqueIDX needs a third field. Add WhenEaten as shown in the picture. Save and close.
You changed the date and time fields. What did you do?