Setting the TextBox Datasource and DataMember properties will bind the Textbox
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
DataSource and DataField, and possibly DataMember.
DataMember is used when you are using a DataProvider Class (or the DE), for instance in order to determine which recordset with-in the data class to use.
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Thanks for the reply that works but not for what I want to do.
What I am doing is creating a fault logging database whereby a new unique reference number is created every time a fault is logged.
I am doing this by connecting a data control to a table to obtain a number and then adding 1 to the number and saving it back to the table once the call has been saved.
What i am also doing is saving all the call information such as name, date, fault etc to another table and the fields are connected to another data control.
This works fine for all the empty fields connected to my data control because upon loading a form a new record is created so the fields are blank. However the ref number field is also blank but I want it to hold the reference number that I have obtained from the other table. Do you know of any way that I can do this.
where txtBssRef is connected to a table via data3 and txtWriteBssRef is connected to a table via data2 and also connected to a datafield in this table.
However after running through the above code txtWriteBssRef.text is still blank and does not equal ref. I think that this is because on form load because the field the textbox is connected to is blank then this is blank but I don't know why the line of code doesn't overwrite it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.