Hi everybody - hope you can help out here.
I have a form in a database, which is a columnar form from one of the tables
in the db - there is a sub-form to the form which is a datasheet view of
another table in the db. The LinkChilds property is set to show connected
records from both tables.
What I'd like to do is copy and paste, or use some other method of writing,
the contents of one field in one table in the form, to a field in the table
in the sub-form, preferably with a button on the form which will copy the
data without having to manually copy and paste from field to field.
Is this sort of thing possible ?, and could anybody maybe point me in the
right direction as to how it might be done.
Cheers, and thanks in advance.
Andy
A N D R E W H U T C H I N G S , N E W C A S T L E UK
e-mail: an**@airnorth.demon.co.uk
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003 4 6513
Andy,
Put the main form in design mode, drop a command button on it, and add some
code like this to the button's OnClick property (it will copy from the main
form to the subform):
me.subFormName.Form.Field1Name = me.Field1Name
me.subFormName.Form.Field2Name = me.Field2Name
....
"Andy Hutchings" <an**@airnorth.demon.co.uk> wrote in message
news:bq*******************@news.demon.co.uk... Hi everybody - hope you can help out here.
I have a form in a database, which is a columnar form from one of the
tables in the db - there is a sub-form to the form which is a datasheet view of another table in the db. The LinkChilds property is set to show connected records from both tables.
What I'd like to do is copy and paste, or use some other method of
writing, the contents of one field in one table in the form, to a field in the
table in the sub-form, preferably with a button on the form which will copy the data without having to manually copy and paste from field to field.
Is this sort of thing possible ?, and could anybody maybe point me in the right direction as to how it might be done.
Cheers, and thanks in advance.
Andy
A N D R E W H U T C H I N G S , N E W C A S T L E UK e-mail: an**@airnorth.demon.co.uk --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
Thanks very much for the prompt reply - I have tried it, but I don't think
I'm writing the code correctly.
I'm not sure what 'me' is ..... could you re-write the code with my db names
etc. in their correct place, as per the following names please.
Database name = Civil
Form name = Changes (same name as underlying table)
sub-form name = bbH (same name as underlying table)
Field name in Changes = NAME
Field name in bbH = OWNER
I want the field NAME in Changes to be written to the field OWNER in bbH
Sorry if I'm totally thick, and thanks again
Andy
"DFS" <no******@nospam.com> wrote in message
news:vs************@corp.supernews.com... Andy,
Put the main form in design mode, drop a command button on it, and add
some code like this to the button's OnClick property (it will copy from the
main form to the subform):
me.subFormName.Form.Field1Name = me.Field1Name me.subFormName.Form.Field2Name = me.Field2Name ... "Andy Hutchings" <an**@airnorth.demon.co.uk> wrote in message news:bq*******************@news.demon.co.uk... Hi everybody - hope you can help out here.
I have a form in a database, which is a columnar form from one of the tables in the db - there is a sub-form to the form which is a datasheet view of another table in the db. The LinkChilds property is set to show
connected records from both tables.
What I'd like to do is copy and paste, or use some other method of writing, the contents of one field in one table in the form, to a field in the table in the sub-form, preferably with a button on the form which will copy
the data without having to manually copy and paste from field to field.
Is this sort of thing possible ?, and could anybody maybe point me in
the right direction as to how it might be done.
Cheers, and thanks in advance.
Andy
A N D R E W H U T C H I N G S , N E W C A S T L E UK e-mail: an**@airnorth.demon.co.uk --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
"Andy Hutchings" <an**@airnorth.demon.co.uk> wrote in message
news:bq*******************@news.demon.co.uk... Thanks very much for the prompt reply - I have tried it, but I don't think I'm writing the code correctly.
I'm not sure what 'me' is ..... could you re-write the code with my db
names etc. in their correct place, as per the following names please.
Database name = Civil Form name = Changes (same name as underlying table) sub-form name = bbH (same name as underlying table) Field name in Changes = NAME Field name in bbH = OWNER
I want the field NAME in Changes to be written to the field OWNER in bbH
Andy, for purposes of this particular line of code:
database name = Civil = not important
Form name = Changes = not important
sub-form name = bbH = important
Me = reference to form executing the code = imporant
Field name in Changes = NAME = important
Field name in bbH = OWNER = important
On form "Changes", add a click button and this code to it:
me.bbH.Form.OWNER = me.[NAME]
(note: I put Name in brackets because it's a common property of Access
objects. In general you shouldn't use NAME as a field name).
Sorry if I'm totally thick, and thanks again
Andy
"DFS" <no******@nospam.com> wrote in message news:vs************@corp.supernews.com... Andy,
Put the main form in design mode, drop a command button on it, and add some code like this to the button's OnClick property (it will copy from the main form to the subform):
me.subFormName.Form.Field1Name = me.Field1Name me.subFormName.Form.Field2Name = me.Field2Name ... "Andy Hutchings" <an**@airnorth.demon.co.uk> wrote in message news:bq*******************@news.demon.co.uk... Hi everybody - hope you can help out here.
I have a form in a database, which is a columnar form from one of the tables in the db - there is a sub-form to the form which is a datasheet view
of another table in the db. The LinkChilds property is set to show connected records from both tables.
What I'd like to do is copy and paste, or use some other method of writing, the contents of one field in one table in the form, to a field in the table in the sub-form, preferably with a button on the form which will copy the data without having to manually copy and paste from field to field.
Is this sort of thing possible ?, and could anybody maybe point me in the right direction as to how it might be done.
Cheers, and thanks in advance.
Andy
A N D R E W H U T C H I N G S , N E W C A S T L E UK e-mail: an**@airnorth.demon.co.uk --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
Thank you again very much for confirming that code.
I have done as you said, but am now getting an error message "Microsoft
Access can't find the macro 'me'." when I click the button to try to execute
the operation. I'm using Access97 btw ...
Thank you very much
Andy
e-mail: an**@airnorth.demon.co.uk
"DFS" <no******@nospam.com> wrote in message
news:vs************@corp.supernews.com... "Andy Hutchings" <an**@airnorth.demon.co.uk> wrote in message news:bq*******************@news.demon.co.uk... Thanks very much for the prompt reply - I have tried it, but I don't
think I'm writing the code correctly.
I'm not sure what 'me' is ..... could you re-write the code with my db names etc. in their correct place, as per the following names please.
Database name = Civil Form name = Changes (same name as underlying table) sub-form name = bbH (same name as underlying table) Field name in Changes = NAME Field name in bbH = OWNER
I want the field NAME in Changes to be written to the field OWNER in bbH
Andy, for purposes of this particular line of code:
database name = Civil = not important Form name = Changes = not important sub-form name = bbH = important Me = reference to form executing the code = imporant Field name in Changes = NAME = important Field name in bbH = OWNER = important
On form "Changes", add a click button and this code to it:
me.bbH.Form.OWNER = me.[NAME]
(note: I put Name in brackets because it's a common property of Access objects. In general you shouldn't use NAME as a field name). Sorry if I'm totally thick, and thanks again
Andy
"DFS" <no******@nospam.com> wrote in message news:vs************@corp.supernews.com... Andy,
Put the main form in design mode, drop a command button on it, and add some code like this to the button's OnClick property (it will copy from the main form to the subform):
me.subFormName.Form.Field1Name = me.Field1Name me.subFormName.Form.Field2Name = me.Field2Name ... "Andy Hutchings" <an**@airnorth.demon.co.uk> wrote in message news:bq*******************@news.demon.co.uk... > Hi everybody - hope you can help out here. > > I have a form in a database, which is a columnar form from one of
the tables > in the db - there is a sub-form to the form which is a datasheet
view of > another table in the db. The LinkChilds property is set to show connected > records from both tables. > > What I'd like to do is copy and paste, or use some other method of writing, > the contents of one field in one table in the form, to a field in
the table > in the sub-form, preferably with a button on the form which will
copy the > data without having to manually copy and paste from field to field. > > Is this sort of thing possible ?, and could anybody maybe point me
in the > right direction as to how it might be done. > > Cheers, and thanks in advance. > > Andy > > A N D R E W H U T C H I N G S , N E W C A S T L E UK > e-mail: an**@airnorth.demon.co.uk > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003 > >
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: JC |
last post by:
How do I extract data from a form into the main form for processing? For
instance, I have several image files in a form called images(images.frm),...
|
by: beowulfs |
last post by:
Here's what I've got:
I've got a form with combo boxes. you can select already existing
company names or type in new ones. if you type in a new...
|
by: Jain |
last post by:
Hi,
How can I make it compulsory for data to be entered into a field in a form.
Eg it won't allow the user to close the form without filling in a...
|
by: meganrobertson22 |
last post by:
hi everybody-
what is the best way to add data from one form to another?
i have 2 tables: person and contract. here are some of the fields.
...
|
by: daD |
last post by:
I'm trying to write a small database that tracks people coming and
going from a small campground. I need to have the current guests in
the...
|
by: nicbowker |
last post by:
Dear All,
I'm creating a simple purchasing database.
The user enters the purchasers name and address.
Later on in the same form it asks for...
|
by: hexagram |
last post by:
hi guys can anybody can teach me how to do this scenario
Transfering Data of a form to a new form
The Scenario is:
I have a Delivery Receipt...
|
by: Headbanger |
last post by:
Hello,
I would appreciate any help or suggestions. I am not a programmer.
I need a large amount of non-personal data from a form to be...
|
by: angi35 |
last post by:
I've been puzzling over something, and hopefully someone here can help me figure it out.
In Access 2000, I have two forms... let's call them formA...
|
by: tammygombez |
last post by:
Hey fellow JavaFX developers,
I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
|
by: concettolabs |
last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: CD Tom |
last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
| |