iankerry
Registered User.
- Local time
- Today, 09:16
- Joined
- Aug 10, 2005
- Messages
- 190
Hi Folks
I have the following code:
The problem is that the field [adulttp] comes up as £3.5 rather than £3.50 - which is what it is in the actual table.
How can I force the format with two decimal places?
many thanks,
ian
I have the following code:
Code:
f OpenConnection Then
If rs.State = adStateOpen Then rs.Close
rs.Open SQL, cn, adOpenKeyset, adLockOptimistic
If Not rs.EOF Then
dblRecord = rs.RecordCount
ReDim arrSummaryData(1 To dblRecord)
'create an Array depends on number of records and put all data with features
'
With rs
intRecordCount = 1
Do While Not .EOF
arrSummaryData(intRecordCount).strPromoterName = IIf(IsNull(![NAME]), "", ![NAME])
strPromoterName = arrSummaryData(intRecordCount).strPromoterName
arrSummaryData(intRecordCount).strEmail = IIf(IsNull(![email]), "", ![email])
strEmail = arrSummaryData(intRecordCount).strEmail
arrSummaryData(intRecordCount).dtDatefield = IIf(IsNull(![datefield]), "", ![datefield])
arrSummaryData(intRecordCount).strTime = IIf(IsNull(![time]), "", ![time])
arrSummaryData(intRecordCount).strDVD = IIf(IsNull(![owndvd]), "", ![owndvd])
If arrSummaryData(intRecordCount).strDVD = "False" Then
arrSummaryData(intRecordCount).strDVD = "We will provide the DVD for this screening"
Else
arrSummaryData(intRecordCount).strDVD = "You will provide your own DVD"
End If
arrSummaryData(intRecordCount).strFilmName = IIf(IsNull(![film name]), "", ![film name])
arrSummaryData(intRecordCount).strVenue = IIf(IsNull(![VENUE]), "", ![VENUE])
arrSummaryData(intRecordCount).curAdultTP = IIf(IsNull(![adulttp]), "", ![adulttp])
arrSummaryData(intRecordCount).curChildTP = IIf(IsNull(![ChildTP]), "", ![ChildTP])
arrSummaryData(intRecordCount).curFamilyTP = IIf(IsNull(![FamilyTP]), "", ![FamilyTP])
arrSummaryData(intRecordCount).curother1tp = IIf(IsNull(![Other1TP]), "", ![Other1TP])
arrSummaryData(intRecordCount).StrSpEvent = IIf(IsNull(![specialevents]), "", ![specialevents])
.MoveNext
intRecordCount = intRecordCount + 1
Loop
.Close
End With
The problem is that the field [adulttp] comes up as £3.5 rather than £3.50 - which is what it is in the actual table.
How can I force the format with two decimal places?
many thanks,
ian