473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Date Picker simulation

167 100+
hi all,

This is the desired scenario:
-User opens a form in Datasheet view.
-When TextBox1 is entered (on enter event) a button should appear next to it.
-When clicked the button opens a search form.
-User double clicks an item from result list on the search form and data is entered into the TextBox1.

I accomplished this using a label as 'button that shows up' but this method requires Form to be open in Continous or Single view. But I need it to be open in datasheet view.

That 'date picker' feature is closest to what I want to have.
I want to use this instead of using combobox for Text1, because combo box will have more then hundred records to select from.

Any suggestions on how to accomplish this?

thanks, h
Dec 13 '09 #1
8 2883
Delerna
1,134 Expert 1GB
Why does the form need to be in datasheet view and not continuous?
Dec 14 '09 #2
hjozinovic
167 100+
Datasheet view allows selecting entire column and copy/pasting from excel.
column width can be resized...looks better etc.
I could live without it, but this is more like en experiment. That feature is something useful and I would like to use it in this and my future projects.
Dec 14 '09 #3
missinglinq
3,532 Expert 2GB
I've been reading this thread for two days and I'm still not sure what you're trying to do! You talk, in turn, about a command button, a label, a combobox and then a DatePicker.

At any rate, in a Datasheet View form, command buttons, independent labels and ActiveX controls, like calendars and DateTimePickers, are not available in Form View. Comboboxes will show up, but appear as textboxes with a Down Arrow.

What I usually use, when needing to have the user trigger an event, in a Datasheet View form, is the DoubleClick event of the textbox in question. You can use this to open your search form.

Linq ;0)>
Dec 14 '09 #4
hjozinovic
167 100+
Linq,

I'm sure you used date picker which appears next to the control formatted as i.e. 'ShortDate'
When you click on it a calendar control shows up allowing you to select a date.
What I want to have is almost the same:
When I enter the control a little button (or label or whatever) shows on the right side.
When I click on it, it opens a search form I created.
Dec 14 '09 #5
missinglinq
3,532 Expert 2GB
You're talking about the native DatePicker that appears next to textboxes whose Control Source is defined as Date/Time fields, which is an Access 2007 only feature (although I suppose 2010 Beta has it, too.) But you want it to act as a command button to open your search form.

I understand what you want now, but unfortunately the answer remains the same! In Datasheet View form, command buttons and independent labels are not available when the form is run. As I also said, you could use the DoubleClick event of TextBox1 to open the search form, or I suppose you could use the OnEnter event of TextBox1 to do the same thing, simply cutting out the middle man (the psuedo-DatePicker) altogether!.

Linq ;0)>
Dec 14 '09 #6
hjozinovic
167 100+
As I said above I'm trying to experiment here and create something new and useful.
Double click event will do the trick. I just wanted a visual 'sign' for the users thata specific text box has more to offer.
I guess, this thread can be closed...
Thanks for your suggestions guys.
h.
Dec 14 '09 #7
Delerna
1,134 Expert 1GB
selecting entire column and copy/pasting from excel.
column width can be resized...looks better etc
Don't agree that they look better


You have a point with selecting columns and copy paste from excel, but...
You can overcome that by
*giving the user the ability to switch between continuous or datasheet.
*Add a button that opens a copy of the form in datasheet (Prossibly the better option)
*Probably other ways if some thought was given to it

There are plusses and minuses when using either of the two form views, as indeed there are with all things.
Datasheet has the plusses that you point out, but one of the minuses are as you are experiencing. Continuous form has similar pluses and minuses but in reverse. Part of our job is to come up with ways of incorporating the plusses and find ways of working around the minuses of whatever it is we are using.

Obviously we want to develop our applications so that they are as simple and easy to maintain as possible, but if the simplest way to achieve something means that we must use 100 separate forms, what does it really matter, so long as to the user it all flows smoothly.

PS
I just want to be sure that it is obvious that the above is said in an effort to be helpful...not critical.

Attached is an image of continuous form. They can be made to look every bit as good if not better
Attached Images
File Type: jpg ContinuousForm.jpg (43.0 KB, 350 views)
Dec 14 '09 #8
Delerna
1,134 Expert 1GB
Just saw the post from hjozinovic
Wow, it took me more than 19 minutes to write mine
Dec 14 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Adrian Parker | last post by:
Hi. I have a date time picker in my program which uses ADO to read from an Access database. It works perfectly, unless the database is empty (no records) when opened. When you try to open an...
13
by: Hussein Patwa | last post by:
Hi there. I'm new to this group. I'm also partially sighted so navigating the web is sometimes quite difficult. I'm looking for a javascript date picker, you know the ones that travel sites...
13
by: Deano | last post by:
Hi, I generate a report using two dates (From and To). I notice if I enter 01/10/2003 that it is interpreted by Access as 10/01/2003 i.e 10th January rather than 1st October as I intended. ...
4
by: Rethish | last post by:
Hi All, I am developing an application in VB.net. I am using .Net Datetime picker control to manage the date. But I am not able to assign null/Empty value to the control. I found the property...
4
by: Michael Turner | last post by:
Hi Guys I have two DateTime pickers one shows the Date and the other the time, this is a requirement of the solution. The problem I have is that when the time is saved to the sql database into a...
4
by: Michel Posseth [MCP] | last post by:
I have a problem with the date time picker validate event wich i believe is a bug How to reproduce : throw on a form a date time picker control and a textbox control select the validating...
0
by: fredloh | last post by:
i have a tab control on my form. i then have several microsoft date and time picker control on the tab control. when i select a date on any of the date and time picker control, the result of the...
1
by: vp.softverm | last post by:
hi all . Am facing problem with the date picker. when i click on date picker in a popup window. the date table is opened in the middle of the pop up window. and it is unable to scroll with...
1
by: Bobby | last post by:
Hi, I'm using Office 2007. I have a text field called txtDate which is formatted to medium date. This gives me the date picker when the control has the focus. I have several other text controls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.