Hi Leute ich habe ein Problem mit der Create Methode, aber erstmal gibt es ein bisschen Code
| For i = 1 To intDurchlaeufe |
| |
| Call dtPayableDate.AdjustMonth(intStep ) |
| |
| Set newDoc = db.CreateDocument |
| newDoc.personName = strPersonName |
| newDoc.amount = curAmount |
| newDoc.once = strOnce |
| newDoc.repeat = strRepeat |
| newDoc.kindofCost = strKindOfCost |
| newDoc.payableDate = dtPayableDate.localTime |
| newDoc.Form = "PersonForecast" |
| newDoc.amountsuffix = strSuffix |
| |
| Call newDoc.Save(True,False) |
| Next |
Also wie ihr seht haben wir hier eine Schleife die mir schön Documente erzeugt.
Mein Problem ist, dass sie keine FeldEigenschaften setzt. Also zum Beispiel bei :
"dtPayableDate" würde ich gerne ein Datumsfeld erzeugen oder bei
"curAmount" ein Numerisches Feld.
Deklariert sind diese Variablen wie folgt :
| Dim dtPayableDate As NotesDateTime |
| Dim strPersonName As String |
| Dim strLifetime As String |
| Dim strRepeat As String |
| Dim strOnce As String |
| Dim strKindofCost As String |
| Dim curAmount As Variant |
hoffe ihr könnt mir weiterhelfen.
Ich bedanke mich schon mal für eure Hilfe