Re: subform issue
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Tue, 02 Dec 2008 02:41:36 GMT
you're welcome, glad it worked for you! :)
"Patttt" <Patttt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D6AD3B1C-7C42-49CA-A1EC-B6CB7224794A@xxxxxxxxxxxxxxxx
Hi Tina,subform
I just wanted to let you know that your expertise was a terrific help! I
fixed the problem - everything is running smoothly. You're the best!
Pat
"tina" wrote:
well, in the subform, i'd get rid of the two-table query. bind the
maketo tblOrderDetails, or to a query that includes only tblOrderDetails.
LinkChildFieldssure the subform is linked to the mainform, by setting the
(whichproperty to OrderID (which refers to the OrderID foreign key field in
tblOrderDetails) and setting the LinkMasterFields property to OrderID
torefers to the OrderID primary key field in tblOrders).
if you want to see/choose products by name, in the OrderDetails subform,
then add a combobox control in the subform, with the ControlSource set
ColumnCountthe ProductID field in tblOrderDetails, and the RowSource set to a SQL
statement based on tblProducts, something like
SELECT ProductID, ProductName FROM tblProducts ORDER BY ProductName;
set the combobox control's BoundColumn to 1 (the default), the
controlto 2, and the ColumnWidths to 0";2" so the ProductID will be correctly
stored in the ProductID field in tblOrderDetails, but the combobox
thein the subform with *display* the product name, not the id.
hth
"Patttt" <Patttt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0EB51FEA-911F-4F0B-A035-845ED84D4A0B@xxxxxxxxxxxxxxxx
The subform is based on a query that does contain my data when I open
thequery. It's based on 2 tables that have primary key/ foreign key
relationships. The query contains a field called "product id" that is
codeprimary key one of the tables. However, an early designer added some
(anotherthat replaces the product id number with the name of the product
ittable that is also related). I had it working once in the subform, but
don'tonly displayed the product id code - not the product name. Now, I
thehave
any entries in the subform at all. To answer your questions:tables.
1. the mainform is bound to the Orders table
2. Order Id is the primary key of Orders
3. The subform is bound to a query based on Orders and Order Details
the tables are related on the Order ID field.subform).
4. Order ID from Order is part of the query (not displayed in the
Order ID is part of the main form and displayed on the main form.
Thanks so much for your help! For some reason, the query DOES display
isrecords, but the subform doesn't AND we can't add anything new via thequery
or the subform. Pat
"tina" wrote:
you need to go back and look at the tables/relationships. what table
thattable isbound to the mainform? what is that table's primary key field? what
bound to the subform? does that table contain a foreign key field
primarylinks
foreignback to the primary key field of the first table? if yes, is that
key field included in the RecordSource of the subform? is the
mainform?key
field of the first table included in the RecordSource of the
error
hth
"Patttt" <Patttt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:53FCC2A7-3347-46FE-B756-621215A92E34@xxxxxxxxxxxxxxxx
nope....that didn't fix it. I did notice, though, that I have an
Detailsmessage on the status bar that says "join key of table Order
trynot
where toin
record set" when I try to add a new record. I don't have any idea
go
to fix it!
"Patttt" wrote:
"Allow Additions" says yes, although "Data Entry" says no. I'll
tochanging
that one. thanks!
"Brian" wrote:
Check your subform's AllowAdditions property. Did it get set
data? IFalse
somehow?
"Patttt" wrote:
Is there a reason why a subform won't let you enter new
havecan
enter new
data in the main form section just fine. The subform does
onethe
dropdown
list that displays the correct choices, but when I click on
onlyof
them,
nothing is entered in the field. Essentially, the subform
tablesdisplays the
existing data but won't let you enter new records. The
ARE
help!related, so
it's not a relationship issue. any thoughts? Thanks for your
Pat
.
- Follow-Ups:
- Re: subform issue
- From: Patttt
- Re: subform issue
- References:
- Re: subform issue
- From: Patttt
- Re: subform issue
- Prev by Date: Re: Access 07 software at work
- Next by Date: Sales Per caps CrossTab report
- Previous by thread: Re: subform issue
- Next by thread: Re: subform issue
- Index(es):
Relevant Pages
|