A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Form and Subform problem



 
 
Thread Tools Display Modes
  #11  
Old January 20th, 2006, 08:38 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Form and Subform problem

Wayne,

My understanding is that the forms are working well, and the info you
have been looking at would confirm that. My understanding is that Annie
was than having trouble getting her query based on the related tables to
work for her. I think she was joining the tables on the wrong field -
have a look at my reply on the other "sub-thread" and see what you think.

--
Steve Schapel, Microsoft Access MVP


Wayne Morgan wrote:
That appears to be correct. I wonder if the index is corrupted on the field.
Have you done a Compact and Repair of the database? This will rewrite the
indexes on the fields. Primary keys are indexed fields. If the index is
corrupted it can send you to the wrong record.

  #12  
Old January 20th, 2006, 09:40 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Form and Subform problem

OH MY GOD! IT WORKED!!! Thank you so much! I have been working on this for
over 3 days. Thank you both for all of your help.

-Annie

"Steve Schapel" wrote:

Wayne,

My understanding is that the forms are working well, and the info you
have been looking at would confirm that. My understanding is that Annie
was than having trouble getting her query based on the related tables to
work for her. I think she was joining the tables on the wrong field -
have a look at my reply on the other "sub-thread" and see what you think.

--
Steve Schapel, Microsoft Access MVP


Wayne Morgan wrote:
That appears to be correct. I wonder if the index is corrupted on the field.
Have you done a Compact and Repair of the database? This will rewrite the
indexes on the fields. Primary keys are indexed fields. If the index is
corrupted it can send you to the wrong record.


  #13  
Old January 20th, 2006, 09:46 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Form and Subform problem

Good to hear of your success. Thanks for letting us know, Annie. Best
wishes with the rest of your project.

--
Steve Schapel, Microsoft Access MVP


Annie Litchfield (UNF Honors Program) wrote:
OH MY GOD! IT WORKED!!! Thank you so much! I have been working on this for
over 3 days. Thank you both for all of your help.

  #14  
Old January 23rd, 2006, 01:27 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Form and Subform problem

Steve,
One last question/problem - when that particular query is deleted and then
someone tries to create a new one, they will have to fix the SQL view
everytime? Is there a way to prevent that? For my other subforms, my db
users can just create and delete queries without having to adjust this. Most
of my db users here only know the bare minimum but still need to be able to
manipulate queries and so forth. Is it possible to fix this?

-annie

"Steve Schapel" wrote:

Good to hear of your success. Thanks for letting us know, Annie. Best
wishes with the rest of your project.

--
Steve Schapel, Microsoft Access MVP


Annie Litchfield (UNF Honors Program) wrote:
OH MY GOD! IT WORKED!!! Thank you so much! I have been working on this for
over 3 days. Thank you both for all of your help.


  #15  
Old January 23rd, 2006, 06:13 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Form and Subform problem

Annie,

This doesn't need to get changed in the SQL view of the query. It can
be done in design view. It is simply a matter of drag'n'drop from the
ID field in the Students table to the StudentID field in the other
table. I think what has happened is that Access has "helpfully"
automatically put the Join between the tables in there for you when you
create the query, based on a "guess" because both tables contain an ID
field and at least one of them is a primary key. This problem would be
solved by re-naming the primary key field of the Students table to
StudentID... but this might then involve making changes in forms or
other queries to tidy this up. However, there should probably also be a
Relationship defined (Tools|Relationships menu) between these two
tables, and this should be based on [Students].[ID] = [Semester
Progress].[StudentID]. If you set this up, I am pretty sure the
"problem" would also disappear, i.e. the default join in a new query
would be based on the Relationship definition.

Just for the record, I would never in my wildest dreams allow database
users to have access to query design.

--
Steve Schapel, Microsoft Access MVP


Annie Litchfield (UNF Honors Program) wrote:
Steve,
One last question/problem - when that particular query is deleted and then
someone tries to create a new one, they will have to fix the SQL view
everytime? Is there a way to prevent that? For my other subforms, my db
users can just create and delete queries without having to adjust this. Most
of my db users here only know the bare minimum but still need to be able to
manipulate queries and so forth. Is it possible to fix this?

  #16  
Old January 25th, 2006, 04:50 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Form and Subform problem

Steve,
Now this is exactly what I needed. It resolved my problem entirely.

Side note -- In my wildest dreams I would like for my db users NOT to have
access to query design. I have no real authority here. I just pray every
night in my real dreams that nothing bad happens. Thank god for backup, eh?


Sincerely grateful for all of your help,
Annie

"Steve Schapel" wrote:

Annie,

This doesn't need to get changed in the SQL view of the query. It can
be done in design view. It is simply a matter of drag'n'drop from the
ID field in the Students table to the StudentID field in the other
table. I think what has happened is that Access has "helpfully"
automatically put the Join between the tables in there for you when you
create the query, based on a "guess" because both tables contain an ID
field and at least one of them is a primary key. This problem would be
solved by re-naming the primary key field of the Students table to
StudentID... but this might then involve making changes in forms or
other queries to tidy this up. However, there should probably also be a
Relationship defined (Tools|Relationships menu) between these two
tables, and this should be based on [Students].[ID] = [Semester
Progress].[StudentID]. If you set this up, I am pretty sure the
"problem" would also disappear, i.e. the default join in a new query
would be based on the Relationship definition.

Just for the record, I would never in my wildest dreams allow database
users to have access to query design.

--
Steve Schapel, Microsoft Access MVP


Annie Litchfield (UNF Honors Program) wrote:
Steve,
One last question/problem - when that particular query is deleted and then
someone tries to create a new one, they will have to fix the SQL view
everytime? Is there a way to prevent that? For my other subforms, my db
users can just create and delete queries without having to adjust this. Most
of my db users here only know the bare minimum but still need to be able to
manipulate queries and so forth. Is it possible to fix this?


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form, Subform, Tab key 2nd_Stage_User Using Forms 17 August 25th, 2006 12:30 AM
Is it possible to show both "Yes" and "No" answers from a "yes/no" checkbox? Colin Foster New Users 28 March 18th, 2005 02:19 PM
Subform Refresh Problem (but only with an unbound combo box control) Barry Skidmore Using Forms 1 December 21st, 2004 01:19 AM
open a form through a subform in access 2000 Tammy Setting Up & Running Reports 12 October 22nd, 2004 02:43 PM
dlookup miaplacidus Using Forms 9 August 5th, 2004 09:16 PM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.