I agree with your first If... it will update the changes on the
existing form and retain the same filename. My form is not doing as
you indicate in the second if.
My form will save the changes made within the form on the SharePoint
file but the filename is not changing. It's retaining the same
filename as before the concatenating fields were changed.
Are you using a Save or a submit to SharePoint. Are you using code or
standard data connections?
Typically people have the opposite problem, a new form is being created when
they want the old one updated.
Once you get a new saving, (Should be with a submit) then you can use a CAML
to delete out the old form if that is what you want.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> > > I have an InfoPaht 2007 form that is submitting both to a database
> > > and a SharePoint Document Libary. The SharePoint filename is
[quoted text clipped - 33 lines]
> file but the filename is not changing. It's retaining the same
> filename as before the concatenating fields were changed.
sboyd - 30 Jan 2008 16:35 GMT
On Jan 29, 10:26 am, Clay Fox <Clay...@discussions.microsoft.com>
wrote:
> Are you using a Save or a submit to SharePoint. Are you using code or
> standard data connections?
[quoted text clipped - 48 lines]
>
> - Show quoted text -
The form is submitting to a SharePoint library and a database. We
have an edit person that will pull the forms up from SharePoint each
day, check them and resubmit them back to the database. So if the
fields are changed that created the filename, it retains the filename
and I would like for it just to overwrite the file with a new
filename. The form has a primary key field included that links all of
the database tables. Could I somehow build a rule based on that?
sboyd - 30 Jan 2008 16:37 GMT
On Jan 29, 10:26 am, Clay Fox <Clay...@discussions.microsoft.com>
wrote:
> Are you using a Save or a submit to SharePoint. Are you using code or
> standard data connections?
[quoted text clipped - 48 lines]
>
> - Show quoted text - I forgot to say we are using Standard data connections. What is CAML?
Clay Fox - 30 Jan 2008 17:10 GMT
It should be simple. Are they using Save or submit? You could try having two
submits as well. But you should be able to verify the second file name
before submit and that would create a new document if the name is unique.
You could also turn off overwrite in the library. I am guessing they are
using save rather than a submit, I think this would give the behavior you
describe. I typiclaly turn save off and force the user to use submit so that
you have control of what happens.
The CAML is used to be able to delete a file from SharePoint. You can
search on it on http://www.infopathdev.com and find instructions.
Once you have it saving with a new name you will likely want to clean up the
old form. You may need to save the old name so that it is eacy to erase.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> On Jan 29, 10:26 am, Clay Fox <Clay...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 50 lines]
> >
> > - Show quoted text - I forgot to say we are using Standard data connections. What is CAML?
Anna Morghan - 04 Jul 2008 12:24 GMT
http://baigadil.blogspot.com/2008/07/get-current-user-for-infopath-and-set_2480.html