textbox & form

RonR

Well-known member
Joined
Nov 23, 2007
Messages
82
Programming Experience
5-10
I have a form called: PrintSingleRecord


the form has a textbox named: Wrapsource2


this code is in a module.



PrintSingleRecord.Wrapsource2.Text = Trim$(rsIncidents.Fields("Notes1").Value & "")


the code does not load the textbox. what else needs to be done?
(Rate)
 
1. Try putting it in a messagebox to make sure there is something there.
VB.NET:
Messagebox.Show(Trim$(rsIncidents.Fields("Notes1").Value & ""))
2. You might have to add ToString to Value
VB.NET:
PrintSingleRecord.Wrapsource2.Text = Trim$(rsIncidents.Fields("Notes1").Value.ToString & "")
 
I found out that the forms do not work like in VB 6. there has to be some coding done before the controls will work across forms.
 
Back
Top