Help, small block of code not working

 I took out my IFs where I would normally test for the Db opens, note opens, etc.  I know mail\test.nsf and mail\nadmin.nsf exist and I know NoteID 2298 exist.  I stripped this down to keep the code block small.  When the logic was in everything passed with no errors.  Basically just looking for shortest example of copying a note from one DB to another.  Thank you.

void myTest(void)

{

NOTEID			noteid = 2298;

DBHANDLE		db_handle_src, db_handle_dst;

NOTEHANDLE	note_handle;



NSFDbOpen("mail\\nadmin.nsf", &db_handle_src);

NSFDbOpen("mail\\test.nsf", &db_handle_dst);

NSFNoteOpen(db_handle_src, noteid, 0, &note_handle);



NSFNoteGetInfo(note_handle, _NOTE_ID, &noteid);



NSFDbCopyNote(db_handle_src, NULL, NULL, noteid, db_handle_dst, NULL, NULL, NULL, NULL);



NSFNoteClose(note_handle);

NSFDbClose(db_handle_src);

NSFDbClose(db_handle_dst);

}

Subject: SOLVED

I accidentally wrote down the wrong NOTEID. And being the document being copied was some kind of design element it would not show in the view. This is what caused the strange behavior because in fact it was working and copying the document which is why I was not receiving any errors but yet would also look like the message was not copied.