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

Access form won't reset unless closed and reopened

Access 2003 Windows XP

All information comes from Table1 except for Teacher and Course which comes from Table2. Information selected in the drop down boxes from Table2 becomes a part of Table1. Table2 lists the teachers and the courses they teach. Teachers have multiple courses.

A problem occurs if the wrong teacher name is selected from the drop down menu. When a new name is selected the course selection doesn’t change and contains the list for the 1st name selected. The only way to refresh it is by closing the form and reopening it. (Not a problem for me, but for some teachers it is.)

I'll include images if someone will tell me how to do this.
Feb 1 '08 #1
2 3963
MindBender77
234 100+
Access 2003 Windows XP

All information comes from Table1 except for Teacher and Course which comes from Table2. Information selected in the drop down boxes from Table2 becomes a part of Table1. Table2 lists the teachers and the courses they teach. Teachers have multiple courses.

A problem occurs if the wrong teacher name is selected from the drop down menu. When a new name is selected the course selection doesn’t change and contains the list for the 1st name selected. The only way to refresh it is by closing the form and reopening it. (Not a problem for me, but for some teachers it is.)

I'll include images if someone will tell me how to do this.
There are a few things you could try. The first would be to add a simple code to the OnChange event of the last combobox or drop down menu.
Expand|Select|Wrap|Line Numbers
  1. me.refresh
  2.  
This should refresh the data instead of having to close down the db.

The second option would be to add error handling that would prevent the wrong teachers name from being selected.

JS
Feb 1 '08 #2
There are a few things you could try. The first would be to add a simple code to the OnChange event of the last combobox or drop down menu.
Expand|Select|Wrap|Line Numbers
  1. me.refresh
  2.  
This should refresh the data instead of having to close down the db.

The second option would be to add error handling that would prevent the wrong teachers name from being selected.

JS
I think that's going to fix the problem. I had been using requiry. I'm not sure when to use refresh or requiry when writing code. Thanks
Feb 1 '08 #3

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

Similar topics

3
by: polytimi8 | last post by:
Hello, I would like to know if it is possible to create a form in Access2000, which would function like a calendar for 8 operating rooms in hospital, showing which hours are those closed for a...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
6
by: Serious_Practitioner | last post by:
....or lack thereof... I use Access 2000 which I own as part of Office 2000 Professional. I've had enough trouble with glitches to ask if these are common occurrences - 1. Sometimes the "Help"...
1
by: Salad | last post by:
This is a problem I haven't experienced before...maybe you've come across it and have an idea of what's going on. Using A97. I closed my app last night and reopened it. The Access window was...
8
by: Mike Turco | last post by:
This is a strange one. I have an app that needs to know who is using the program but there's no need for security. When the program opens a form comes up with a listbox. The user double-clicks...
55
by: AnandaSim | last post by:
I just had a google through this NG but have not seen mention of Erik Rucker's blog entry and the new Jet: http://blogs.msdn.com/access/archive/2005/10/05/477549.aspx mentioned by Mike...
2
by: Lou Civitella | last post by:
I have a VB.NET mobile application. I created a form called frmOrders. Everything was working OK until I closed the project and then reopened it. In the Solution Explorer I see the form but it does...
8
by: John J. Hughes II | last post by:
Is there a way of resetting the SqlConnection with closing/opening it again. I am not seeing anything called reset. Regards, John
5
by: Prad | last post by:
Hello, In BASIC there is a very useful function called RESET that clears out all the stored variables and restores memory state to startup. Why is there not a similar function in C? It should...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...
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,...

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.