ok, time for me to learn a new trick. i have table that is great for storage, all the values are numeric numbers representing descriptions in other tables, basic good table. my problem is that to view the data in a form i have to use too many queries to make the data legible for the users and then they can't edit the data. i know i can use recordsource to bring in the table numeric data to unbound text boxes that i could then use update queries to change any data that they may need but how do i get the numeric data legible to the persons using the page? can i put a query into the vba? here's the code for the form that i'm trying-
Code:
Private Sub Form_Load()
Dim sql As String
Dim locsql As String
Dim db As Database
Dim rs As DAO.Recordset
sql = "select * from workquet ;"
Set db = CurrentDb
Set rs = db.OpenRecordset(sql)
Me.txtloc.Value = rs![LocID]
Me.txtdept.Value = rs![DeptID]
Me.txtsystem.Value = rs![SystemID]
Me.txtasset.Value = rs![AssetID]
Me.txtcomp.Value = rs![ComponentID]
Me.txtpart.Value = rs![PartID]
Set rs = Nothing
Set db = Nothing
and here's the SQL that i would use in a single query to get the value for the first txtloc
Code:
SELECT [3LocationT].Location
FROM 3LocationT INNER JOIN WorkQueT ON [3LocationT].LocID = WorkQueT.LocID;
i'm sure this is done, its time to learn it