PC Review


Reply
Thread Tools Rate Thread

Datasheet Form

 
 
Lenee
Guest
Posts: n/a
 
      8th Feb 2010
I have created a datasheet form from a query everything is there. I am trying
to enter data here but it will not except it here. Any help would be greatly
appreciated.
--
Lenee
 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      8th Feb 2010
I'm betting that the query contains more than one table. This can be a
problem.

Show us the SQL. Open the query in design view. Next go to View, SQL View
and copy and past it here.

Information on primary keys and relationships would be a nice touch too.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Lenee" wrote:

> I have created a datasheet form from a query everything is there. I am trying
> to enter data here but it will not except it here. Any help would be greatly
> appreciated.
> --
> Lenee

 
Reply With Quote
 
Lenee
Guest
Posts: n/a
 
      8th Feb 2010
Jerry you are absolutely correct. I have 4 tables in my query. Here is the
information you are asking for.

Customer Table - Primary Key is CustomerID
Estimate Table - Primary Key is EstimateID
CutWork Table - Primary Key is CutworkID
Cut Table - No Primary Key

The CustomerID is in all of the tables and joined here.

SELECT CutT.CutCust2010, CutWorkT.Cutwk1, CutT.CutArea, CutT.CutOrdNum,
CustomerT.ABC, CustomerT.Address, CustomerT.City, CustomerT.State,
CustomerT.Zip, CustomerT.MapPage, CustomerT.MapPageLetter,
CustomerT.MapPageNum, CutWorkT.Cutwk2, CutT.CutPrice, CutT.CutEOW,
CutT.Cutcomments, EstimateT.SqFt, EstimateT.Services, CutT.CutLR,
CustomerT.CustomerID, CustomerT.MyCounter, CustomerT.FirstName,
CustomerT.LastName
FROM ((CustomerT INNER JOIN CutT ON CustomerT.CustomerID = CutT.CustomerID)
INNER JOIN EstimateT ON CustomerT.CustomerID = EstimateT.CustomerID) INNER
JOIN CutWorkT ON CustomerT.CustomerID = CutWorkT.CustomerID
WHERE (((CutT.CutCust2010)=Yes) AND ((CutWorkT.Cutwk1) Is Null))
ORDER BY CutT.CutArea, CutT.CutOrdNum;

I hope this helps you to help me.
--
Lenee


"Jerry Whittle" wrote:

> I'm betting that the query contains more than one table. This can be a
> problem.
>
> Show us the SQL. Open the query in design view. Next go to View, SQL View
> and copy and past it here.
>
> Information on primary keys and relationships would be a nice touch too.
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "Lenee" wrote:
>
> > I have created a datasheet form from a query everything is there. I am trying
> > to enter data here but it will not except it here. Any help would be greatly
> > appreciated.
> > --
> > Lenee

 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      8th Feb 2010
Your query is probably not updateable. Open the query and look at the
navigation buttons. If the new record button os grayed out, your query is
not updateable. When a query is not updateable, you won't be able to add new
records to a form based on the query. For example, union queries and
crosstab queries are not updateable.

Steve
(E-Mail Removed)


"Lenee" <(E-Mail Removed)> wrote in message
news:A5BB1169-7B01-4686-A0AF-(E-Mail Removed)...
>I have created a datasheet form from a query everything is there. I am
>trying
> to enter data here but it will not except it here. Any help would be
> greatly
> appreciated.
> --
> Lenee



 
Reply With Quote
 
Jerry Whittle
Guest
Posts: n/a
 
      8th Feb 2010
That's just not going to work. Here's what to try.

1. Open the Relationships window and join the 4 tables there. Enable
Referential Integrity. If it won't let you, there may be a problem with data
especially with the Cut Table table as it doesn't have a primary key.

2. Create a form based on just the CustomerT table.

3. Create a subform on the above form based on the EstimateT. Since you have
the relationships built up above, the subform Wizard should do most of the
work.

4. Repeat for the other two tables.

It's possible that you will need sub-subforms, but your SQL statement seems
to say that the other 3 tables are linked directly to the CustomerT table.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Lenee" wrote:

> Jerry you are absolutely correct. I have 4 tables in my query. Here is the
> information you are asking for.
>
> Customer Table - Primary Key is CustomerID
> Estimate Table - Primary Key is EstimateID
> CutWork Table - Primary Key is CutworkID
> Cut Table - No Primary Key
>
> The CustomerID is in all of the tables and joined here.
>
> SELECT CutT.CutCust2010, CutWorkT.Cutwk1, CutT.CutArea, CutT.CutOrdNum,
> CustomerT.ABC, CustomerT.Address, CustomerT.City, CustomerT.State,
> CustomerT.Zip, CustomerT.MapPage, CustomerT.MapPageLetter,
> CustomerT.MapPageNum, CutWorkT.Cutwk2, CutT.CutPrice, CutT.CutEOW,
> CutT.Cutcomments, EstimateT.SqFt, EstimateT.Services, CutT.CutLR,
> CustomerT.CustomerID, CustomerT.MyCounter, CustomerT.FirstName,
> CustomerT.LastName
> FROM ((CustomerT INNER JOIN CutT ON CustomerT.CustomerID = CutT.CustomerID)
> INNER JOIN EstimateT ON CustomerT.CustomerID = EstimateT.CustomerID) INNER
> JOIN CutWorkT ON CustomerT.CustomerID = CutWorkT.CustomerID
> WHERE (((CutT.CutCust2010)=Yes) AND ((CutWorkT.Cutwk1) Is Null))
> ORDER BY CutT.CutArea, CutT.CutOrdNum;
>
> I hope this helps you to help me.
> --
> Lenee
>
>
> "Jerry Whittle" wrote:
>
> > I'm betting that the query contains more than one table. This can be a
> > problem.
> >
> > Show us the SQL. Open the query in design view. Next go to View, SQL View
> > and copy and past it here.
> >
> > Information on primary keys and relationships would be a nice touch too.
> > --
> > Jerry Whittle, Microsoft Access MVP
> > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> >
> >
> > "Lenee" wrote:
> >
> > > I have created a datasheet form from a query everything is there. I am trying
> > > to enter data here but it will not except it here. Any help would be greatly
> > > appreciated.
> > > --
> > > Lenee

 
Reply With Quote
 
Lenee
Guest
Posts: n/a
 
      8th Feb 2010
Jerry I was able to make the sub-forms but what I am trying to do is get
information from each table on 1 datasheet to enter data. I need to see
customer name with there area (different table) and the cut week (a third
table), so that i can enter the data in the cut week field for the customers
that were cut that week. I am looking to enter 90 to 120 entries in a day.
Doing the sub-forms still only lets me look at 1 record at a time. Am I
trying to do the impossibe here?

I did go to the Relationships and did as you suggested, even put in a
primary key, still didn't work.

Thanks for your help and any other advise.
--
Lenee


"Jerry Whittle" wrote:

> That's just not going to work. Here's what to try.
>
> 1. Open the Relationships window and join the 4 tables there. Enable
> Referential Integrity. If it won't let you, there may be a problem with data
> especially with the Cut Table table as it doesn't have a primary key.
>
> 2. Create a form based on just the CustomerT table.
>
> 3. Create a subform on the above form based on the EstimateT. Since you have
> the relationships built up above, the subform Wizard should do most of the
> work.
>
> 4. Repeat for the other two tables.
>
> It's possible that you will need sub-subforms, but your SQL statement seems
> to say that the other 3 tables are linked directly to the CustomerT table.
> --
> Jerry Whittle, Microsoft Access MVP
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "Lenee" wrote:
>
> > Jerry you are absolutely correct. I have 4 tables in my query. Here is the
> > information you are asking for.
> >
> > Customer Table - Primary Key is CustomerID
> > Estimate Table - Primary Key is EstimateID
> > CutWork Table - Primary Key is CutworkID
> > Cut Table - No Primary Key
> >
> > The CustomerID is in all of the tables and joined here.
> >
> > SELECT CutT.CutCust2010, CutWorkT.Cutwk1, CutT.CutArea, CutT.CutOrdNum,
> > CustomerT.ABC, CustomerT.Address, CustomerT.City, CustomerT.State,
> > CustomerT.Zip, CustomerT.MapPage, CustomerT.MapPageLetter,
> > CustomerT.MapPageNum, CutWorkT.Cutwk2, CutT.CutPrice, CutT.CutEOW,
> > CutT.Cutcomments, EstimateT.SqFt, EstimateT.Services, CutT.CutLR,
> > CustomerT.CustomerID, CustomerT.MyCounter, CustomerT.FirstName,
> > CustomerT.LastName
> > FROM ((CustomerT INNER JOIN CutT ON CustomerT.CustomerID = CutT.CustomerID)
> > INNER JOIN EstimateT ON CustomerT.CustomerID = EstimateT.CustomerID) INNER
> > JOIN CutWorkT ON CustomerT.CustomerID = CutWorkT.CustomerID
> > WHERE (((CutT.CutCust2010)=Yes) AND ((CutWorkT.Cutwk1) Is Null))
> > ORDER BY CutT.CutArea, CutT.CutOrdNum;
> >
> > I hope this helps you to help me.
> > --
> > Lenee
> >
> >
> > "Jerry Whittle" wrote:
> >
> > > I'm betting that the query contains more than one table. This can be a
> > > problem.
> > >
> > > Show us the SQL. Open the query in design view. Next go to View, SQL View
> > > and copy and past it here.
> > >
> > > Information on primary keys and relationships would be a nice touch too.
> > > --
> > > Jerry Whittle, Microsoft Access MVP
> > > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> > >
> > >
> > > "Lenee" wrote:
> > >
> > > > I have created a datasheet form from a query everything is there. I am trying
> > > > to enter data here but it will not except it here. Any help would be greatly
> > > > appreciated.
> > > > --
> > > > Lenee

 
Reply With Quote
 
Lenee
Guest
Posts: n/a
 
      8th Feb 2010
Steve you were right. Is there any way to make it updateable?
--
Lenee


"Steve" wrote:

> Your query is probably not updateable. Open the query and look at the
> navigation buttons. If the new record button os grayed out, your query is
> not updateable. When a query is not updateable, you won't be able to add new
> records to a form based on the query. For example, union queries and
> crosstab queries are not updateable.
>
> Steve
> (E-Mail Removed)
>
>
> "Lenee" <(E-Mail Removed)> wrote in message
> news:A5BB1169-7B01-4686-A0AF-(E-Mail Removed)...
> >I have created a datasheet form from a query everything is there. I am
> >trying
> > to enter data here but it will not except it here. Any help would be
> > greatly
> > appreciated.
> > --
> > Lenee

>
>
> .
>

 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      8th Feb 2010
Lenee,

Your tables probably need a simple tweak! I presume you want to enter an
estimate for a customer. Is that correct? Please explain Cut Table and
CutWork Table. Is CutWork the details of a Cut? Could you respond back with
the fields in the Estimate Table, Cut Table and CutWork Table in this
format:

Estimate
EstimateID
<your fields>

Cut
<your fields>

CutWork
CutworkID
<your fields>

Steve


"Lenee" <(E-Mail Removed)> wrote in message
news:65238FDD-A873-4E50-8EAD-(E-Mail Removed)...
> Steve you were right. Is there any way to make it updateable?
> --
> Lenee
>
>
> "Steve" wrote:
>
>> Your query is probably not updateable. Open the query and look at the
>> navigation buttons. If the new record button os grayed out, your query is
>> not updateable. When a query is not updateable, you won't be able to add
>> new
>> records to a form based on the query. For example, union queries and
>> crosstab queries are not updateable.
>>
>> Steve
>> (E-Mail Removed)
>>
>>
>> "Lenee" <(E-Mail Removed)> wrote in message
>> news:A5BB1169-7B01-4686-A0AF-(E-Mail Removed)...
>> >I have created a datasheet form from a query everything is there. I am
>> >trying
>> > to enter data here but it will not except it here. Any help would be
>> > greatly
>> > appreciated.
>> > --
>> > Lenee

>>
>>
>> .
>>



 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      8th Feb 2010
On Mon, 8 Feb 2010 12:11:01 -0800, Lenee <(E-Mail Removed)>
wrote:

>Jerry I was able to make the sub-forms but what I am trying to do is get
>information from each table on 1 datasheet to enter data. I need to see
>customer name with there area (different table) and the cut week (a third
>table), so that i can enter the data in the cut week field for the customers
>that were cut that week. I am looking to enter 90 to 120 entries in a day.
>Doing the sub-forms still only lets me look at 1 record at a time. Am I
>trying to do the impossibe here?


Try changing the subform's Default View property from "Single Form" to
"Continuous Forms". It's perfectly possible to see one "parent" table record
(Customer in your case) with multiple "child" table records on one screen, if
you design your queries correctly.

Your attempt to create One Great Master Query to do everything is, in this
case, doomed to failure since there is no physical or logical relationship
between the Estimate and the CutWork tables - each is related to the Customer,
but it appears that they are not related to each other.
--

John W. Vinson [MVP]
 
Reply With Quote
 
Lenee
Guest
Posts: n/a
 
      8th Feb 2010
Steve

I need to see customer name (Customer Table) with there area (Cut table)
and the cut week (Cutwork table), so that i can enter the data in the cut
week field for the customers that were cut that week. I am looking to enter
90 to 120 entries in a day. Doing the sub-forms still only lets me look at 1
record at a time. Am I
trying to do the impossibe here? The Estimate table only has 2 fields that I
need for this query. I will be putting Customer information in the customer
table from a form, then the estimate information from a form, cut information
from a form, the nice neet idiot proof ones. I have those all made linked
together works great. Now trying to put this in a datasheet form to input the
cuts (date) quickly. I hope this isn't to confusing.

Here is the information you asked for. If you need anything else just let me
know.
Thanks for your help and advise.

Customer Table
CustomerID
MyCounter
ABC
FirstName
LastName
Address
City
MapPage
MapPageLetter
MapPageNum

Cut Table
CustomerID (Foreign Key)
CutCust2010
CutArea
CutOrdNum
CutPrice
CutEOW
CutComments
CutLR

CutWork Table
CustomerID (Foreign Key)
Cutwk1
Cutwk2
Cutwk3
Cutwk4
Cutwk5

Estimate Table
CustomerID (Foreign Key)
Services
SqFt


These are the fields that I am putting in my query to try and make a
datasheet form for quick entries in the cut weeks. All tables have a primary
key except for the Cut table, but I do have a field that Can be put as a
primary key.
--
Lenee


"Steve" wrote:

> Lenee,
>
> Your tables probably need a simple tweak! I presume you want to enter an
> estimate for a customer. Is that correct? Please explain Cut Table and
> CutWork Table. Is CutWork the details of a Cut? Could you respond back with
> the fields in the Estimate Table, Cut Table and CutWork Table in this
> format:
>
> Estimate
> EstimateID
> <your fields>
>
> Cut
> <your fields>
>
> CutWork
> CutworkID
> <your fields>
>
> Steve
>
>
> "Lenee" <(E-Mail Removed)> wrote in message
> news:65238FDD-A873-4E50-8EAD-(E-Mail Removed)...
> > Steve you were right. Is there any way to make it updateable?
> > --
> > Lenee
> >
> >
> > "Steve" wrote:
> >
> >> Your query is probably not updateable. Open the query and look at the
> >> navigation buttons. If the new record button os grayed out, your query is
> >> not updateable. When a query is not updateable, you won't be able to add
> >> new
> >> records to a form based on the query. For example, union queries and
> >> crosstab queries are not updateable.
> >>
> >> Steve
> >> (E-Mail Removed)
> >>
> >>
> >> "Lenee" <(E-Mail Removed)> wrote in message
> >> news:A5BB1169-7B01-4686-A0AF-(E-Mail Removed)...
> >> >I have created a datasheet form from a query everything is there. I am
> >> >trying
> >> > to enter data here but it will not except it here. Any help would be
> >> > greatly
> >> > appreciated.
> >> > --
> >> > Lenee
> >>
> >>
> >> .
> >>

>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form in datasheet view will not show my 2 subforms in datasheet vi =?Utf-8?B?VGhlMm5kMDA3YmFiZQ==?= Microsoft Access Forms 1 5th Mar 2007 07:41 PM
Opening a form a second time from toolbar shows Form in stead of Datasheet Roel Schreurs Microsoft Access Forms 0 2nd Oct 2006 12:13 PM
detect form opening by tabular form or datasheet form =?Utf-8?B?dGhlY3VvbmdqYXBhbg==?= Microsoft Access Form Coding 3 21st Jan 2006 11:00 AM
What code needed to select record from ((Main form)) in (sub form Datasheet) vb Microsoft Access Form Coding 0 6th Sep 2003 06:28 PM
Adding buttons to datasheet form, or make continous form field adjustable Andre T. Microsoft Access 1 12th Aug 2003 12:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.