Database Field as Text

When I want to display a database field as text (not an entry field) I’ve been creating a static control and then to setting the value in the code by doing something similar to:

STC_Field = MyTableField

Then I remembered “If it seems hard, you are probably doing it wrong!” and decided that style system probably has a better way. Sure enough, there is even a default style for it!!! So now I just create an entry field linked to the database field and chose the “EDT_No_Bckgrd” style, no code, no fuss!

BTW, remember it will still be editable, so be sure to set the State to Read-only on the GUI tab of the control.

Don’t know if this is really a tip, or just shows how thick skulled I am.

Now, back to your regular schedule program….

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s