473,406 Members | 2,343 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.

requery problem

I have a text box on a form header into which a date is entered to filter the
data in the continuous form. A requery in after update does the trick.
If I populate the text box from a calender form then the after update does not
work.
I can fire the requery from the calender form but as I am calling the calender
from more than one form so that is not the answer.

Any thoughts on how do deal with this
TIA
David b

Nov 12 '05 #1
2 1816
Put the following code in the click event of a button on your form:

Docmd.OpenForm "NameOfYourCalendarForm",,,,,acDialog
If IsLoaded("NameOfYourCalendarForm") Then
Me!NameOfYourUnboundtextbox =
Forms!NameOfYourCalendarForm!NameOfCalendarControl .Value
Me.Requery
DoCmd.Close acForm, "NameOfYourCalendarForm"
End If

Add code to the calendar so when you select the date, the calendar form becomes
not visible.

Note: You can find the IsLoaded function in the NorthWind sample Db in modules.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"David B" <Da***@marleycotenospam.fsnet.co.uk> wrote in message
news:c0**********@news5.svr.pol.co.uk...
I have a text box on a form header into which a date is entered to filter the
data in the continuous form. A requery in after update does the trick.
If I populate the text box from a calender form then the after update does not
work.
I can fire the requery from the calender form but as I am calling the calender
from more than one form so that is not the answer.

Any thoughts on how do deal with this
TIA
David b

Nov 12 '05 #2
Got it, Thanks
DB

PC Datasheet <sp**@nospam.spam> wrote in message
news:lj***************@newsread1.news.atl.earthlin k.net...
Put the following code in the click event of a button on your form:

Docmd.OpenForm "NameOfYourCalendarForm",,,,,acDialog
If IsLoaded("NameOfYourCalendarForm") Then
Me!NameOfYourUnboundtextbox =
Forms!NameOfYourCalendarForm!NameOfCalendarControl .Value
Me.Requery
DoCmd.Close acForm, "NameOfYourCalendarForm"
End If

Add code to the calendar so when you select the date, the calendar form becomes not visible.

Note: You can find the IsLoaded function in the NorthWind sample Db in modules.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"David B" <Da***@marleycotenospam.fsnet.co.uk> wrote in message
news:c0**********@news5.svr.pol.co.uk...
I have a text box on a form header into which a date is entered to filter the data in the continuous form. A requery in after update does the trick.
If I populate the text box from a calender form then the after update does not work.
I can fire the requery from the calender form but as I am calling the calender from more than one form so that is not the answer.

Any thoughts on how do deal with this
TIA
David b



Nov 12 '05 #3

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

Similar topics

3
by: pbbriggs | last post by:
I will try to be as descriptive as possible, but this error has me stumped and I am not sure what relevant info to include.... I am running Access XP on a Windows XP machine. I initially began...
6
by: Tim Marshall | last post by:
Here's the situation. A form, frmSetUp, with a subform control called subExplain with a source object form frmSetUpSubDefineSides. The source object is a bound form, displaying a few records, no...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
20
by: MS | last post by:
Access 97 I want to requery the data being displayed on a form, then I want to return to the record I was in. Why doesn't this code work? Private Sub CmdRefsh_Click()
2
by: Gianluca_Venezia | last post by:
Scenary: a main form contains two sub-form unbounded. Sub-form "one" contains a list of products. Sub-form "two" contains the items of the selected product. Event: when, from sub-form "two",...
2
by: F. Michael Miller | last post by:
I need to requery a subform from a third form and can't seem to get it to work. frmForm1 has frmAddress as a subform. The button cmdReviseAddress opens the form frmUpdateAddress where all of my...
1
by: ANDRESUK | last post by:
All I have a listbox in a form footer. When the form footer is visible the listbox requeries fine but when I turn the form footer visible=false the listbox does not requery at all. What I am...
6
by: MarkoBBC | last post by:
Hi everyone, First a brief description of my form: I have a subform within a main form. In my subform, I have a listbox displaying address information by firm name. A user first has to select a...
11
by: mrowe | last post by:
I am using Access 2003. (I am also using ADO in the vast majority of my code. I recently read a post that indicated that ADO is not all that is was initially cracked up to be. In the back of my...
2
by: Lyn | last post by:
Hi, I am using a form (FormA) to list the records in a recordset. In the FormA footer, I have an "Add" command button that opens a new form (FormB) modally which is used to input and save a new...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.