How do I create new item in a different folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a form based on IPM.Post for gathering and displaying certain
non-sensitive project data. "Project_Data"

I have also designed another form to show more sensitive financial data for
a project. "Financial_Data"

I want to create Project_Data items in one public folder that most people in
the business would be able to access, and Financial_Data items in a separate
folder with more restricted user access.

I want users that are viewing a Project_Data item to be able to click a
command button to create a Financial_Data item for the project, and I want
the User Property "Job_Number" to be passed to the newly-created
Financial_Data item when that happens.

Here is the problem ...

-If I make a custom action on the Project_Data form, I don't seem to be able
to use the custom action to create an item in a different folder.

- If I use code like this:

Set MyFins = FinFolder.Items.Add("IPM.Post.Project_Financial_Info")

... then the Job_Number property is not automatically passed to the new item.

I'm still pretty green at this kind of thing, and I'm hoping I'm missing
something pretty simple.

Can anyone suggest anything?

Thanks in advance

Vaughan
 
Add code to set the Job_Number:

Set MyFins = FinFolder.Items.Add("IPM.Post.Project_Financial_Info")
MyFinds.UserProperties("Job_Number") = Item.UserProperties("Job_Number")
 
You see? I knew you smart people would be able to help.

Many many thanks once again Sue.

Vaughan
 
Back
Top