View Full Version : Moving text between forms??


daveUK
02-09-2002, 05:13 AM
I am in the proccess of creating a database that allows users to store/view and catagorize digital photogrpahs. I've created a search form that will search for image files in the directory the user selects, and lists all of the files in a listbox. The listbox contans the full path of the files i.e. C:\My Documents\Photos\skiing.jpg In order for the user to be able to add new files to the database, they click on the 'Add File' command button, this then opens up a form (frmPhoto) with all of the other files and locations listed.
What I want to do is copy the selected image file path from the listbox on the search form, to the new form (frmPhoto).
Any ideas???

Jack Cowley
02-09-2002, 09:59 AM
One way would be to use the OpenArgs statement in the OpenForm method to pass the item selected in the List box. Search help for OpenArgs as there is a good example there of how to implement it.

daveUK
02-10-2002, 01:19 AM
Thanks, I'll give it a try