DatePicker not working if setting ColumnOrders

I use Access 2010.
I have a subform in datasheet format with some 30 fields.
(I use datasheet format, because that is the only way to fit in all the fields in the limited width.)
On Form_Current and on Form_Load, I use a subroutine to arrange the columns as required.
However after arranging columns, the date picker does not work in date fields.
Has anybody had this problem, any ideas or advice?
Thanks
Fritz PaulAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Can you show the code you're using to arrange your columns?
0
Fritz PaulAuthor Commented:
Thanks Scott. However I worked through  the night and rebuilt the form. I used exactly the same code for arranging columns, but it is working now.
But with pleasure here is my code. When I applied the "exit sub" I could use DatePicker, but not without it.
Private Sub ArrangeFrmOrdersDetailDel()
'Exit Sub
Me![PlantType].ColumnOrder = 2
Me![Cultivar].ColumnOrder = 3
Me![Sort].ColumnOrder = 4
Me![Clone].ColumnOrder = 6
Me![OrderDate].ColumnOrder = 7
Me![Req_Date].ColumnOrder = 8
Me![SoldAs].ColumnOrder = 9
Me![Quantity].ColumnOrder = 10
Me![Confirm].ColumnOrder = 11
Me![Width].ColumnOrder = 12
Me![ChoiceWeek].ColumnOrder = 13
Me![Allocated].ColumnOrder = 14
Me![CutWeek].ColumnOrder = 15
Me![Source].ColumnOrder = 16
Me![CertNo].ColumnOrder = 17
Me![Block].ColumnOrder = 18
Me![Certified].ColumnOrder = 19
Me![DeliveryDate].ColumnOrder = 20
Me![DeliveryNo].ColumnOrder = 21
Me![DeliveryQuantity].ColumnOrder = 22
Me![DeliveryNotePrinted].ColumnOrder = 23
Me![Bags].ColumnOrder = 24
Me![Comment].ColumnOrder = 25
Me![Comment Del Note].ColumnOrder = 26
Me![GraftedQuantity].ColumnOrder = 27
Me![Nr].ColumnOrder = 28
Me![Season].ColumnOrder = 29

Me![Sort].ColumnWidth = 800
Me![Confirm].ColumnOrder = 800

Open in new window

End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Glad you got it fixed. I was just curious if you were doing something odd with the column ordering, but that's pretty straight forward. Often you'll find that a Form or Report can get corrupted, and rebuilding it will fix things.
1
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

PatHartmanCommented:
Just FYI, You should not have to set the tab order this way.  You can control the column order in the DS view at design time.  After you move controls around on a DS (or actully ANY form),  press the Tab Order button in the Ribbon.  People frequently set the column widths for controls in a DS form at runtime because the design feature to set the widths and make the widths stick is broken.
0
Fritz PaulAuthor Commented:
I explained that I rebuilt my form and that fixed the issue.
0
PatHartmanCommented:
Yes, but wouldn't you like to know how to solve the column sequence problem without writing code or rebuilding the form?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.