Weird problem with Items on form

Hi

I am trying to compare fieldvalues from 2 databases.

I am using this code just to access the to views and the documents.

Dim session As New NotesSession

Dim session2 As New NotesSession	

Dim db As NotesDatabase 

Dim db2 As NotesDatabase

Dim Movexview As NotesView

Dim Notesview As NotesView

Dim MovexDoc As NotesDocument

Dim notesDoc As NotesDocument

Dim idag As String	



Set db = session.GetDatabase("DKDANNOT1/SpiraDK", "Databaser\IT\ProdSpecPump.nsf")

Set db2 = session2.GetDatabase("DKDANNOT1/SpiraDK", "Databaser\IT\SpecDB.nsf")

Set Movexview = db.GetView ( "Movex" )

Set Notesview = db2.GetView ( "LEI" )



Set MovexDoc = Movexview.GetFirstDocument

Set NotesDoc = Notesview.GetFirstDocument

the weird thing is that I dont get all the Notesitems on the forms, when I run the code with the debugger I get aprox half of the fields, somehow the other fields dos not exist for the debugger. ( I look under the section Items in the debugger, there I can see most of the fields)

I am using subforms but the values I want to compare are in the original form.

I can see the fields in the view, can add them to a column.

do any of you have had this problem, and how did you fix it ?