473,789 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2003 Beginner - Requery from Combo Box Help

jay
Hi.

I have created an unbound combo box in a form whose purpose is to pass
parameters to a query and then requery the requery.

The unbound combo box is named "ClosedFilt er" The two parameters it
will pass to the query called "qry_WkReq" is "Yes" and "No." (The
field being requeried is a Yes/No type field.) After this, I created
an event procedure after update and coded:

ClosedFilter.Re query

This didn't work and this code is probably wrong. I found many
different examples searching through Google Groups and nothing seemed
to work out and query the records they way they need to be. I've used
Access for a while, but I'm just getting into coding modules and stuff
of that nature. Any help would be appreciated. Let me know of any
additional info needed.

Thanks!
Jay

May 6 '06 #1
2 3610
Calling the Requery() method on the combo box will refresh the data
inside the combo box only. Is this what you want or do you want to
refresh the values of another field?

If you want to refresh the values in the combo box and it's not
working, check that the combo box has a row source defined for it &
also you might check the query.

If you want to refresh the values of another field you can call
Requery() on that field or on the entire form (better to only call it
on the field you want, though).

Hope that helps a little, but please tell me if I've
misunderstood/missed the point completely.

May 6 '06 #2
jay
Sorry for the extremely late reply. Unexpected leave. I would like to
refresh the all the data on the form after making a selection in that
combo box. Are there any examples of code I can look at?

May 12 '06 #3

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

Similar topics

5
3322
by: will eichert | last post by:
Greetings. I have a problem with a combo box incorrectly displaying blank items when returning to a form from a modal form. It's fine when the main form first comes up, but gets messed up when the main form is reactivated following opening and closing a modal form. Strangely, this was not a problem until I started using my Access 2000 db in Access 2003 (as an Access 2000 db). Details follow... I have an unbound combo box on my main form...
22
2081
by: Bob Darlington | last post by:
It has been suggested to me (by a potential client) that my app (which he is considering buying) should be web enabled to improve performance, particularly regarding screen refreshes. My initial reaction was to say "No' (I was cringing at the time), 'cos I just don't want to do it. But after a reality check, I thought that I should consult the experts, so here I am. Is there any reason to expect my access 2002 application to run any...
6
7989
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 firm name in a combo box above the list box. The listbox and the combo box join on firm name. The listbox records what address was selected in the address table by the way of an address id number. I set up a macro to requery the listbox when you...
3
3513
by: rhobson2 | last post by:
Hello, I wrote a database applicaiton using Access XP (2002) and everything has been working good for the client until they purchased a couple of new computers with Access 2003. The meetings form has an unbound combo box listing all the meetings in the database allowing the user to navigate between meeting records. The meetings form also has a list box that displays a list of members associated with a meeting.
10
1976
waynetheengineer
by: waynetheengineer | last post by:
Hi, I'm trying to write code for a form when it closes. It's supposed to requery a combo box depending on which form is currenlty open in the background behind the current form, shown below: Private Sub Form_Close() If Forms(frmProjecTotal).CurrentView <> 0 Then Forms!!.Requery Else Forms!!.Requery
0
1186
by: annivanova | last post by:
Hi, I saw posts in Dependent listboxes on access forms, which problem is very similar to my. I’m from Bulgaria and working over to create an MS Access application. I used in my project given code : Private Sub Country_AfterUpdate() With Me! If IsNull(Me!Country) Then ' if no country is selected .RowSource = "" ' leave row source of Region blank Else ' if country is selected
0
1446
by: annivanova | last post by:
Hi, I saw posts in Dependent listboxes on access forms, which problem is very similar to my. I’m working over to create an MS Access application. I used in my project given code : Code: Private Sub Country_AfterUpdate() With Me! If IsNull(Me!Country) Then ' if no country is selected .RowSource = "" ' leave row source of Region blank
2
3147
by: Sid | last post by:
I need some help in setting up Access combo box. I am using three comboboxes in my form. Comb Box 1, Combo Box 2, Combo Box 3. The row source for each of the combo box is a seperate table. Table 1 acts as row source for Combo Box 1 Table 2 acts as row source for Combo Box 2 However for combobox 3, I was trying to use 4 different tables as row source. I am trying to set up a criteria such that row source for comb
1
1361
by: Brian McLaughlin | last post by:
Hi. Probably a simple problem but i'm pulling my hair out! I have 3 tables(Consultant name, hospital and medical department). Consultant name is joined to the other two by their primary key. I want to create a form with 3 drop down menus. I've managed to do the first two (choose hospital first, then medical department) but I want the third drop down menu(consultant name) to refer to the choices made in the first two drop down boxes and...
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10410
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9984
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.