Click here to Skip to main content
15,886,639 members

Comments by Chester Costa (Top 18 by date)

Chester Costa 9-Jul-14 4:46am View    
i've done it already sir,i just removed the part where i add another full join using the third table.then that's it. i just used the subreport linking with my parameter on main report.
Chester Costa 19-Jun-14 21:30pm View    
thanks for your reply sir..but may i ask about the do loop?

this is the code you gave me:
this is where i put the the string:
txtORNumber.Text = "OR" & Date.Today.ToString("MMddyy") & fBase26Encode(ornum).ToString & ornum.ToString.PadLeft(4, "0")

"where ornum comes from the total count of data in my table which is in my case,when it reach two data in my table for example then next to my date string will add "A" and so on

Function fBase26Encode(ByRef lngNumToConvert As Long) As String
Dim s As New StringBuilder
Dim abc As Char() = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray
If lngNumToConvert > 2 Then
Do While lngNumToConvert <> 0
s.Append(abc(lngNumToConvert Mod 26))
lngNumToConvert = lngNumToConvert \ 26
Loop
End If
Return StrReverse(s.ToString)
End Function
Chester Costa 11-Oct-13 6:07am View    
i used totext function in my crystal report formula sir.
Chester Costa 11-Oct-13 5:51am View    
i just used this totext function:
totext('E04') + totext({actualguesting.datecheckin},"mmddyy") +
totext({actualguesting.foilionum},0,'4')

but the result given to me is "E041011131"
it should be like this "E0410111300001"
Chester Costa 28-Jun-13 19:56pm View    
because i have a tow tables to display in my crystal report,,table1 is actualguesting and table2 foodordertbl.i use folionumber in actualguesting while in foodordertbl i use ornumber