Hello:
Enclosed is a link to a patient care data model. It can be modified to suit your needs.
http://www.databaseanswers.org/data%5Fmodels/patient_care/index.htm
Regards
Mark
Hello
Put the below code under a command button and run.
'
Private Sub cmdTest_Click()
Dim MyCheck As Boolean
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
' Search for open AccessObject objects in AllForms collection.
For Each obj In...
Hello:
The key to that is to have a "Where" expression in your SQL statement such as:
'
strSQL = strSQL & "WHERE (((YourTableName." & YourFieldName & ")='" & YourCombo.Value & "'));"
'
Make sure your form is open when you run the query.
Regards
Mark
If you do what RuralGuy says above, you will come up with this:
'
SELECT Table1.T1Field1, Table2.T2Field1, [T1Field1] & "/" & [T2Field1] AS Expr1
FROM Table1 INNER JOIN Table2 ON Table1.Table1ID = Table2.Table2ID;
Regards
Mark
Hello:
I believe you want to use the PreviousControl method to obtain that value: Below is the syntax
Screen.PreviousControl.OldValue
Search online help for complete example
Regards
Mark