i have a question that needs answering, and i think this might be just the place......
I'm using a form w/ blank textboxes, (frmMainForm)...and a dataform(frmAutos) that shows data from an access database and also contains a "Select" button (cmdSelect)
clicking on any of the textboxes on frmMainForm opens frmAutos and displays the necessary data, upon clicking frmAutos.cmdSelect, the contents of each of frmAutos.textbox.text is copied to a public string variable, and then from there dumped into frmMain.textbox.text...the code looks kinda like this
private sub cmdSelect_Click()
strPublicString=txtfields(0).text
UpdateMainForm()
Unload Me
End Sub
Public sub UpdateMainForm()
frmMainForm.txtTargetTextBox.text=strPublicString
frmMainForm.refresh
End Sub()
If i step through the code, the value at frmMainForm.txtTargetTextBox.text does in fact equal the proper value after it is set, but for some odd reason it doesnt appear on screen at run-time....in other words the data is there, but you just can't see it...
Any help would be INCREDIBLE!!!!!
Also please let me know if there is an easier way to accomplish this task, because i actually feel as though this might be a bit circuitous programmatically.
I'm using a form w/ blank textboxes, (frmMainForm)...and a dataform(frmAutos) that shows data from an access database and also contains a "Select" button (cmdSelect)
clicking on any of the textboxes on frmMainForm opens frmAutos and displays the necessary data, upon clicking frmAutos.cmdSelect, the contents of each of frmAutos.textbox.text is copied to a public string variable, and then from there dumped into frmMain.textbox.text...the code looks kinda like this
private sub cmdSelect_Click()
strPublicString=txtfields(0).text
UpdateMainForm()
Unload Me
End Sub
Public sub UpdateMainForm()
frmMainForm.txtTargetTextBox.text=strPublicString
frmMainForm.refresh
End Sub()
If i step through the code, the value at frmMainForm.txtTargetTextBox.text does in fact equal the proper value after it is set, but for some odd reason it doesnt appear on screen at run-time....in other words the data is there, but you just can't see it...
Any help would be INCREDIBLE!!!!!
Also please let me know if there is an easier way to accomplish this task, because i actually feel as though this might be a bit circuitous programmatically.