I'm working in an Access 2007 Project (.adp) that is linked to a SQL Server database. I did not have this problem before until I transitioned over. I'll take one form as an example of this problem that is rather persistent throughout my app.
I have a continuous form bound to a table (DegReq). The form's detail contains a bound combobox (cboProgram) whose rowsource is simply:
CodeProgramId is the bound column of cboProgram (obviously). Now I want to order the records on the form alphabetically by the program's description, not the id.
In the past, I simply changed the form's recordsource to a query and joined the table CodeProgram to DegReq and ordered by CodeProgram.Des cription. My first idea was to create a view linking the two tables, making the view my recordsource and using the Order By property. However, from running into errors and further research I discovered that if a view is based on multiple tables, I can't do any updates. So, how would I go about doing this? I have several forms where I want to order how record display on a form a certain way but it requires joining other tables (usually my lookup tables like the example above).
I have a continuous form bound to a table (DegReq). The form's detail contains a bound combobox (cboProgram) whose rowsource is simply:
Code:
SELECT CodeProgram.CodeProgramId, CodeProgram.Description FROM CodeProgram ORDER BY Description;
In the past, I simply changed the form's recordsource to a query and joined the table CodeProgram to DegReq and ordered by CodeProgram.Des cription. My first idea was to create a view linking the two tables, making the view my recordsource and using the Order By property. However, from running into errors and further research I discovered that if a view is based on multiple tables, I can't do any updates. So, how would I go about doing this? I have several forms where I want to order how record display on a form a certain way but it requires joining other tables (usually my lookup tables like the example above).
Comment