D
david
If through ignorance of group netiqette I cause offence, I apologise, and
ask you to calmly point out my mistake. I barely understand email, let
alone newsgroups.
I'm hoping to get advice about writing a line of code to Add a member to a
Collection in Access 97, running under XP.
Quotes here enclose the actual names used. The database is split into
"Database.mdb" and "Database data.mdb", both in folder "C\Dart\ActDev".
Last week, any database record was capable of displaying three photographs;
a double click on any photograph would open the file containing it. I
wanted a fourth photo, and carefully went through both databases copying
everything connected with "Photo3", pasted it in what is probably the right
position, then changed any mention of "Photo3" to "Photo4". There are three
small text fields, each with a label, associated with each photograph, e.g.
"Photo3Source"; these were copied/pasted/edited too.
When I run the database, I get "Photo4" highlighted in a line "If
IsNull(Me.Photo4) Then" in Private Sub Form_Current() in "Form_ItemsNew"'s
Class Module, with a message "Method or Data Member not found". In the
Object Browser I found that whilst all the original photo-related fields,
and all the unchanging things I'd created on the form, were listed as
members of "form_ItemsNew", none of the four items relating to "Photo4" on
"Database data.mdb"'s "Items" table were listed. Deleting the links to the
table and re-establishing them did not help. I've checked for typos.
Access Help says that members can be added using Add Method giving the
example "Application.VBE.VBProjects(1).VBComponents.Add(vbext_ct_StdModule)"
But I don't begin to understand Add Method's method. If you think it would
solve the problem described, I'm hoping you will write out the line of code
I'll need to type in (where? The Immediate pane, perhaps, since I assume
this is a once-only job?) to get "Photo4" made a member. If that works, then
I assume that I can simply change "Photo4" for the names of the nonmember
text fields, adding them one by one.
Thank you for your attention and any advice you can give me.
ask you to calmly point out my mistake. I barely understand email, let
alone newsgroups.
I'm hoping to get advice about writing a line of code to Add a member to a
Collection in Access 97, running under XP.
Quotes here enclose the actual names used. The database is split into
"Database.mdb" and "Database data.mdb", both in folder "C\Dart\ActDev".
Last week, any database record was capable of displaying three photographs;
a double click on any photograph would open the file containing it. I
wanted a fourth photo, and carefully went through both databases copying
everything connected with "Photo3", pasted it in what is probably the right
position, then changed any mention of "Photo3" to "Photo4". There are three
small text fields, each with a label, associated with each photograph, e.g.
"Photo3Source"; these were copied/pasted/edited too.
When I run the database, I get "Photo4" highlighted in a line "If
IsNull(Me.Photo4) Then" in Private Sub Form_Current() in "Form_ItemsNew"'s
Class Module, with a message "Method or Data Member not found". In the
Object Browser I found that whilst all the original photo-related fields,
and all the unchanging things I'd created on the form, were listed as
members of "form_ItemsNew", none of the four items relating to "Photo4" on
"Database data.mdb"'s "Items" table were listed. Deleting the links to the
table and re-establishing them did not help. I've checked for typos.
Access Help says that members can be added using Add Method giving the
example "Application.VBE.VBProjects(1).VBComponents.Add(vbext_ct_StdModule)"
But I don't begin to understand Add Method's method. If you think it would
solve the problem described, I'm hoping you will write out the line of code
I'll need to type in (where? The Immediate pane, perhaps, since I assume
this is a once-only job?) to get "Photo4" made a member. If that works, then
I assume that I can simply change "Photo4" for the names of the nonmember
text fields, adding them one by one.
Thank you for your attention and any advice you can give me.