473,387 Members | 3,810 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.

requerying subform

Alien hello to whoever is reading today. Ill try to explain this as
simply as possible its just a weird thing thats happening here in
Access 2000 subforms..

I think something small is out of place. If you have a sec to share
some human thoughts it would be much appreciated!!! I created a
subform that is linked to a main form. I locked all of the combo
boxes in the subform and basically my goal is to have the subform
display whatever its linked to from the main form.
I did this by linking a child field. So, everyting works now.. but
theres a slight anomaly... heres what happens:
---
entering data into main form:

enter value1- no change in subform
enter another value2- data for value1 appears!
enter another value2- data for value2!!

and everything is smooth after that...
--------
heres the code that is attached to the combo box in the main forum

Option Compare Database

Private Sub PONumber_BeforeUpdate(Cancel As Integer)

End Sub

Private Sub PONumber_AfterUpdate()
Me.PO_Item.Requery
End Sub
Any human thoughts appreciated.
Nov 12 '05 #1
1 2328
I assume the your master/child link is based on the combo boxes bound column
on your main form. After you select a value in your combo box on your main
form, you want the records on your subform, where the linked fields match,
to show on your subform. If so, make sure the Control Wizard on the tool
bar is selected. Now add a combo box to your main form and follow the
wizard.

--
Reggie

www.smittysinet.com
----------
"Alienz" <ks*****@yahoo.com> wrote in message
news:58**************************@posting.google.c om...
Alien hello to whoever is reading today. Ill try to explain this as
simply as possible its just a weird thing thats happening here in
Access 2000 subforms..

I think something small is out of place. If you have a sec to share
some human thoughts it would be much appreciated!!! I created a
subform that is linked to a main form. I locked all of the combo
boxes in the subform and basically my goal is to have the subform
display whatever its linked to from the main form.
I did this by linking a child field. So, everyting works now.. but
theres a slight anomaly... heres what happens:
---
entering data into main form:

enter value1- no change in subform
enter another value2- data for value1 appears!
enter another value2- data for value2!!

and everything is smooth after that...
--------
heres the code that is attached to the combo box in the main forum

Option Compare Database

Private Sub PONumber_BeforeUpdate(Cancel As Integer)

End Sub

Private Sub PONumber_AfterUpdate()
Me.PO_Item.Requery
End Sub
Any human thoughts appreciated.

Nov 12 '05 #2

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

Similar topics

4
by: Kyralessa | last post by:
In Access 2000, I have a base form with a ListBox of conference registrants. In the form's declarations section I include Dim f as Form To add a registrant I'm doing this: Set f = New...
1
by: Chicken Kebab Abdullah | last post by:
I am making a database of my movie collection and I have a form which Shows a DVD Code in a combo, and a list of the divx movies on the dvd on the right in a list box. The combo boxes bound...
2
by: Mark Kola | last post by:
I have ran into an interesting situation. I have a calculated field based on a combobox column that somtimes is not requerying when I change the combo box value. Combobox cboCustomer 2...
0
by: Jenni | last post by:
I currently have a query that is joining two distinct pools of information and turning them into one records with a unique identifier This query is dependent on criteria passed from a form in a...
1
by: MDM | last post by:
I have a list box control that is bound to a query. The form is not bound to any source since I have a few list boxes from different sources. When the form opens the list box is populated...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
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...
6
by: DMUM via AccessMonster.com | last post by:
Hello I am trying to pass the name of my subform to a function/sub but I can't seem to get it to work. I am using an autokey function (ctrl E) to unlock text boxes on a subform. I have a few...
4
by: EManning | last post by:
I have a combobox whose rowsource is a union query. This query displays a person's name in "lastname, firstname" format and in "firstname lastname" format. The query results look like this: ...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.