Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Multiple Sub form Problem

Geek News

Multiple Sub form Problem
ckerns[ at ]refuse.net 12/21/2008 7:02:33 PM
I have a main form with two subforms. Main form: parts first subform:
items quoted (form in continuous view).

I would like to click in row in first subform (quoted item) and have a
second subform (current prices) appear in main form.

My ultimate goal is then to click a new price box in second subform
and have it update the item in the first subform.

TIA
RE: Multiple Sub form Problem
boblarson 12/21/2008 7:24:00 PM
You should probably use a listbox instead of a subform for selecting your
item.

--
Bob Larson
Free Tutorials and Samples at http://www.btabdevelopment.com

__________________________________


"ckerns[ at ]refuse.net" wrote:

[Quoted Text]
> I have a main form with two subforms. Main form: parts first subform:
> items quoted (form in continuous view).
>
> I would like to click in row in first subform (quoted item) and have a
> second subform (current prices) appear in main form.
>
> My ultimate goal is then to click a new price box in second subform
> and have it update the item in the first subform.
>
> TIA
>
Re: Multiple Sub form Problem
"Mike Painter" <mddotpainter[ at ]sbcglobal.net> 12/21/2008 8:19:01 PM
I think help has an example of this, the Northwind database does, thre are a
lot of examples on the web and almost any book on Access will have a way or
two.
Basically in the onclick event for the first form you want to set the
recordsource for the second.
One way is to have the key for the second forms data be kept in a hidden
field from the first form (=Forms![client company]!classes.Form!classid)
A master child relationship is set between the main form and the second
subform with this field.
No "clicking" is needed.

ckerns[ at ]refuse.net wrote:
[Quoted Text]
> I have a main form with two subforms. Main form: parts first subform:
> items quoted (form in continuous view).
>
> I would like to click in row in first subform (quoted item) and have a
> second subform (current prices) appear in main form.
>
> My ultimate goal is then to click a new price box in second subform
> and have it update the item in the first subform.
>
> TIA


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net