473,385 Members | 1,593 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,385 software developers and data experts.

refreshing records

Hi all,
I have 2 tables, times & dates
times includes amongst others, 2 fields, date in & day
dates includes date & day.

I have set the lookup property (combo box) on [times].[day] to SELECT
DISTINCT dates.day FROM dates WHERE (((times.[date in]=dates.date)));
This works fine for the first record I fill in but on the next record, it
remembers the previous field. If I click on tools - refresh it then works ok
until the next record.

Is there any way that I can get it to refresh once I have filled in the date
in field?

Cheers,
Mark
Nov 12 '05 #1
1 1188
I'll confess to being groggy and not quite following what you're
doing. But I'll respoond anyway. ;-)

If you need to Refresh the data source for your combo box, there are
a variety of ways to go about it (in VBA). Which is appropriate
depends on your particular need (warning: air-code, written when
groggy):

- You could try Me.ComboBoxName.Refresh in the AfterUpdate event of
the combo box.

- You could try Me.ComboBoxName.Refresh in the OnCurrent event of the
form.

Also be aware that there's a difference between "Refresh" and
"Requery".

Hope that gets you on the right track.

-Matt
On Mon, 23 Feb 2004 08:13:46 -0000, "Mark Reed"
<ma*********@ntlworld.com> wrote:
Hi all,
I have 2 tables, times & dates
times includes amongst others, 2 fields, date in & day
dates includes date & day.

I have set the lookup property (combo box) on [times].[day] to SELECT
DISTINCT dates.day FROM dates WHERE (((times.[date in]=dates.date)));
This works fine for the first record I fill in but on the next record, it
remembers the previous field. If I click on tools - refresh it then works ok
until the next record.

Is there any way that I can get it to refresh once I have filled in the date
in field?

Cheers,
Mark


Nov 12 '05 #2

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

Similar topics

3
by: Bernard André | last post by:
Hi All, context: I am using Access 97 tablkes with VB. I can see records in the MDB, using Adodc and datagrid. No problem. But when doing: rsprivate.AddNew rsprivate!For =...
0
by: serge calderara | last post by:
Dear all, I am develpping a .NET vb application fro 2000 and XP. I have actually an Collection list of Type, where type have 4 variables inside This collection list can be really long. I then...
0
by: msnews | last post by:
Hi -- I'm very, very new to ASP.Net, and I've been trying for several days to figure out how to update a datagrid AND refresh it on the client side so that the page doesn't refresh. I've torn my...
0
by: Mark Payne | last post by:
Gudday, I have an Access 2000 database which I am using as a phone directory of residents in the hostel where I work. The front end for this directory is a form with a text box (the search name...
2
by: Konrad R. | last post by:
Hi all i have 3 popup windows, in which i can add, edit and delete records from a table, now after user is done, i want to refresh main window, i am using...
4
by: JN | last post by:
Hi all, I have some pages where I need to delete/update database records. Everything is fine until I hit the refresh button on the browser (IE). This will cause the pages to repeat the last...
3
by: Steve Hoyer | last post by:
Good day. I wrote an application to convert data from one database to another. It runs through about 100,000 records for this conversion. That bit works fine. I have on the form a progress...
1
by: Iain | last post by:
I am attempting to create an "easy input (from the pov of the user)" form. A main form displays one page per record with a sub form displaying a list of records related to the main record. The...
3
by: Iain | last post by:
How do I get a form to automatically refresh once (not continually using a timer). The scenario I have uses a parent table and a child table. (thanks to mmcarthy for indicating better termenology...
7
by: raknin | last post by:
I'm using AJAX on my website, but internet explorer does not seem to actually be refreshing the data I retrieve via AJAX when I refresh the page. For example, I have a button that when pressed uses...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.