Hi,
Your movie names table should have an
index. Create the combo putting the
index and the movie name in a query behind it. Then select the bound column as column 1
and show 2 columns, hiding the first so
you just see the movie names.
To add a new one to the list use something like the following code:-
'This code adds a name to the security table
Public Function fnAddName(NewData As Variant, Response)
Dim db As Database, rec As Recordset, x As Integer, Added_Field As Boolean
On Error GoTo addname_err
If MsgBox("This Name is not in the list - do you wish to add it?", vbOKCancel) = vbCancel Then
Response = acDataErrContinue
Exit Function
End If
Set rec = db.OpenRecordse("tblsecurity", dbOpenTable)
rec.addnew
rec!SName = NewData
Added_Field = True
Response = acDataErrAdded
rec.Update
function_exit:
If Added_Field = False Then
Response = acDataErrContinue
End If
fnAddName = Response
Screen.ActiveControl.Dropdown
Exit Function
To show a record based on combo boxes chosen
put a query behind a form with the combo's
as criteria as shown above ie.
like cvnull(forms!form!combo)
Put a 'View' button on the main form
which opens the second form with the criteria
in the query behind it!
hope this makes sense.
cheers
bob