Be careful of #1 if you ever plan on moving to SQL. This one bit us in several tender body parts, causing much blood, sweat, and tears (but without the cool horn section)
Here's a 3rd, suitable if you don't mind opening all tables for multiple views in a single DE:
loObj = ThisForm.RefBizObj.Get('YourBizObj')
loDE = loObj.GetDataEnvironment()
loDE.OpenTables()
---J
>I can think of two ways to open the table if Auto Open Tables is unchecked (I'm sure there are others):
>
>
>1.
> USE myTable IN 0 AGAIN
>2.
> loDataEnv = ThisForm.oBizObj.GetDataEnvironment()
> loDataEnv.ov_myView.OpenTable()
>