I am making a hybrid application between SQL, Firefox and Access.
Most of the processing I am doing in Access as it is the simpler choice and easier to deal with.
I have a piece of Code I am using to move through a subform in Datasheet view and grab some data:
Code:
~DoWhile Not rstSubForm.EOF
strItemDescription = rstSubForm.Fields("Item Description")
curLine = rstSubForm.Fields("Quantity") *rstSubForm.Fields("UnitSell")
Me.Parent.txtInvoice = Me.Parent.txtInvoice & vbCrLf & _
rstSubForm.Fields("Quantity") & Space(15 -Len(rstSubForm.Fields("Quantity"))) & strItemDescription & _
Space(41 - Len(strItemDescription)) & _
Format(rstSubForm.Fields("UnitSell"), "Currency") &Space(15 - Len(rstSubForm.Fields("UnitSell"))) & _
Format(curLine, "currency")
Debug.Print Len(strItemDescription)
rstSubForm.MoveNext
Loop
The purpose of this code is to create a nice neat table in the notepad when I get to the output. What it is doing and is giving me the, words not suited to a public space, is Debug.Print Len(strItemDescription) giving me a constant 35 regardless of the length of the actual content.
I don't get it. Why is it constant 35. Doesn't seem to matter what I use as the source it is 35.
Thanks