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  

purpose of subform?



 
 
Thread Tools Display Modes
  #31  
Old January 2nd, 2009, 12:28 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default purpose of subform?

On Thu, 1 Jan 2009 16:19:00 -0800, mike
wrote:

the default view property is not avaliable for subform but its available for
the main form?


Are you looking at the properties of the Subform Control (the box on the
mainform containing the subform) or the properties of the Form object inside
that control (the latter is where you want to be)?
--

John W. Vinson [MVP]
  #32  
Old January 2nd, 2009, 02:38 AM posted to microsoft.public.access.forms
mike
external usenet poster
 
Posts: 3,942
Default purpose of subform?

Are you looking at the properties of the Subform Control (the box on the
mainform containing the subform) or the properties of the Form object inside
that control (the latter is where you want to be)?


Bingo. that was it
  #33  
Old January 6th, 2009, 09:26 PM posted to microsoft.public.access.forms
mike
external usenet poster
 
Posts: 3,942
Default purpose of subform?

its me again just so you know i'm almost there. was asked to add
additional items which was easy since i was using relationships.

newest issues since adding more fields/tables...
-when i add record to tblStudentSubject it overwrites existing record
instead of appending?
-how do i reset cbo to blank upon exit or enter...the last items selected
default to the cbo's when i reopen.

"mike" wrote:

Are you looking at the properties of the Subform Control (the box on the
mainform containing the subform) or the properties of the Form object inside
that control (the latter is where you want to be)?


Bingo. that was it

  #34  
Old January 6th, 2009, 09:37 PM posted to microsoft.public.access.forms
mike
external usenet poster
 
Posts: 3,942
Default purpose of subform?

i found my problem...didnt realize subform was displaying multiple records,
kept changing same record which is why the overwriting was occurring but that
leads me ...
how do i make the blank record default to the subform so other teachers
dont/cant change previous selections? or will the db splitter ensure
previous records cannot be altered?

"mike" wrote:

its me again just so you know i'm almost there. was asked to add
additional items which was easy since i was using relationships.

newest issues since adding more fields/tables...
-when i add record to tblStudentSubject it overwrites existing record
instead of appending?
-how do i reset cbo to blank upon exit or enter...the last items selected
default to the cbo's when i reopen.

"mike" wrote:

Are you looking at the properties of the Subform Control (the box on the
mainform containing the subform) or the properties of the Form object inside
that control (the latter is where you want to be)?


Bingo. that was it

  #35  
Old January 6th, 2009, 09:47 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default purpose of subform?

On Tue, 6 Jan 2009 13:26:00 -0800, mike
wrote:

newest issues since adding more fields/tables...
-when i add record to tblStudentSubject it overwrites existing record
instead of appending?


What's the Recordsource property of the subform? What controls are on it, and
what are their Control Sources?

-how do i reset cbo to blank upon exit or enter...the last items selected
default to the cbo's when i reopen.


Sounds like you may have the combo box unbound. As a rule the combo should
show the value that's actually in the table; you need to navigate to the blank
"new record" to add a new record!
--

John W. Vinson [MVP]
  #36  
Old January 6th, 2009, 11:53 PM posted to microsoft.public.access.forms
mike
external usenet poster
 
Posts: 3,942
Default purpose of subform?

you need to navigate to the blank "new record" to add a new record!
-that was it

-how can i get the subform to default to a new record when the program opens?

-since all records in the table are present in the subform, what's to
prevent a user from changing an existing record?

thx.
  #37  
Old January 7th, 2009, 12:20 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default purpose of subform?

On Tue, 6 Jan 2009 13:37:01 -0800, mike
wrote:

i found my problem...didnt realize subform was displaying multiple records,
kept changing same record which is why the overwriting was occurring but that
leads me ...
how do i make the blank record default to the subform so other teachers
dont/cant change previous selections? or will the db splitter ensure
previous records cannot be altered?


Splitting will NOT permanently lock records... and as a rule you wouldn't want
to do so! Do your teachers never make mistakes and need to correct an entry
which was made previously!?

You can set the subform's Data Entry property to True; this will let you enter
new records but not even *see* old ones. Or, you can set the form's Allow
Additions property to Yes but Allow Edits to No to display old records but
prohibit adding new ones.

I'd really recommend using a Continuous Form for the subform, and make it big
enough that you can see the blank new record at the bottom; or you can put
some VBA code in the subform's Open event to navigate to the new record: click
the ... icon by the Open event property on the form and choose Code Builder,
and edit it to

Private Sub Form_Open(Cancel as Integer)
DoCmd.GoToRecord, , acNewRecord
End Sub

--

John W. Vinson [MVP]
  #38  
Old January 7th, 2009, 12:26 AM posted to microsoft.public.access.forms
mike
external usenet poster
 
Posts: 3,942
Default purpose of subform?

i'm such a knuckle head...the cmdBtn to add new record does this (duh).

"John W. Vinson" wrote:

On Tue, 6 Jan 2009 13:26:00 -0800, mike
wrote:

newest issues since adding more fields/tables...
-when i add record to tblStudentSubject it overwrites existing record
instead of appending?


What's the Recordsource property of the subform? What controls are on it, and
what are their Control Sources?

-how do i reset cbo to blank upon exit or enter...the last items selected
default to the cbo's when i reopen.


Sounds like you may have the combo box unbound. As a rule the combo should
show the value that's actually in the table; you need to navigate to the blank
"new record" to add a new record!
--

John W. Vinson [MVP]

  #39  
Old January 7th, 2009, 01:16 AM posted to microsoft.public.access.forms
mike
external usenet poster
 
Posts: 3,942
Default purpose of subform?

john,

i click new record and when i select a student from the cbo i get the
following dialog box: "The object doesnt contain the Automation object
StudentID..." which only started happening after i rebuilt my subform using
new tables/fields, any idea what's the cause of this?

"John W. Vinson" wrote:

On Tue, 6 Jan 2009 13:26:00 -0800, mike
wrote:

newest issues since adding more fields/tables...
-when i add record to tblStudentSubject it overwrites existing record
instead of appending?


What's the Recordsource property of the subform? What controls are on it, and
what are their Control Sources?

-how do i reset cbo to blank upon exit or enter...the last items selected
default to the cbo's when i reopen.


Sounds like you may have the combo box unbound. As a rule the combo should
show the value that's actually in the table; you need to navigate to the blank
"new record" to add a new record!
--

John W. Vinson [MVP]

  #40  
Old January 7th, 2009, 04:37 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default purpose of subform?

On Tue, 6 Jan 2009 17:16:05 -0800, mike
wrote:

john,

i click new record and when i select a student from the cbo i get the
following dialog box: "The object doesnt contain the Automation object
StudentID..." which only started happening after i rebuilt my subform using
new tables/fields, any idea what's the cause of this?


What's the Recordsource for the subform (post the SQL)? What's the Control
Source of the combo?

My guess is that the combo has a control source that is not a fieldname in the
new table.
--

John W. Vinson [MVP]
 




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


All times are GMT +1. The time now is 11:45 AM.


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