473,320 Members | 2,004 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,320 software developers and data experts.

requery after date picker

I am populating an unbound text box from datepicker calender.
After the date has been selected I need the sub form to requery.
If I manualy put a date in the text box the after update works fine however it
does not when the date comes from the date picker form.
Where do I need the requery line in this situation ?
David B
Hexham UK

Nov 12 '05 #1
2 4050
How are you filling your textbox from the datepicker? You should be able to
issue a .Requery from that code. Assuming your textbox is on the Mainform,
do something like this:

<after your code to fill the listbox>
Forms!NameOfYourMainForm.NameOfYourSubformCONTROL. Form.Requery

Note the "NameOfYourSubformCONTROL" ... this is the name of the Control on
your main form that houses your subform, which is not necessarily the name
of the form contained in your subform.

--
Scott McDaniel
CS Computer Software
Visual Basic - Access - Sql Server - ASP

"Smash forehead on keyboard to continue ... "
"David B" <da***@marleycotenospam.fsnet.co.uk> wrote in message
news:c0**********@newsg2.svr.pol.co.uk...
I am populating an unbound text box from datepicker calender.
After the date has been selected I need the sub form to requery.
If I manualy put a date in the text box the after update works fine however it does not when the date comes from the date picker form.
Where do I need the requery line in this situation ?
David B
Hexham UK

Nov 12 '05 #2

Ok that works, but I am using the same datepicker on more than 1 form, so the
code needs to be on the form that is receiving the date rather than on the
datepicker form.
David B
Scott McDaniel <sc***@no.spam.thedatabaseplace.net> wrote in message
news:g4********************@comcast.com...
How are you filling your textbox from the datepicker? You should be able to
issue a .Requery from that code. Assuming your textbox is on the Mainform,
do something like this:

<after your code to fill the listbox>
Forms!NameOfYourMainForm.NameOfYourSubformCONTROL. Form.Requery

Note the "NameOfYourSubformCONTROL" ... this is the name of the Control on
your main form that houses your subform, which is not necessarily the name
of the form contained in your subform.

--
Scott McDaniel
CS Computer Software
Visual Basic - Access - Sql Server - ASP

"Smash forehead on keyboard to continue ... "
"David B" <da***@marleycotenospam.fsnet.co.uk> wrote in message
news:c0**********@newsg2.svr.pol.co.uk...
I am populating an unbound text box from datepicker calender.
After the date has been selected I need the sub form to requery.
If I manualy put a date in the text box the after update works fine

however it
does not when the date comes from the date picker form.
Where do I need the requery line in this situation ?
David B
Hexham UK



Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.