KevinSlater
08-08-2005, 03:14 AM
Hi, im trying create a form that promts the user with a message box that says "enter form name", from this if the user types "A" then form A will be opened for the user to add data into or if the user types in "B" then form B will be opened for the user to add data into.
Tables A & B are both emty to start of with. The field names in both tables are: user_id, firstname, lastname, date
I have created a third form to use for the person to make their choice. On that form I have a combo box. In th properties ive called it CmbSelect. In the data properties for the box i have changed it to "value list" & enterered forma;formb in the row for the list of values and have put the following code, in the after update property:
select case (cmbSelect)
case A
docmd.openform "formA"
case B
docmd.openform "formB"
case else
end select
but at present nothing happens when you try selecting a form from the drop down menu, any ideas what im doing wrong? Please help
Tables A & B are both emty to start of with. The field names in both tables are: user_id, firstname, lastname, date
I have created a third form to use for the person to make their choice. On that form I have a combo box. In th properties ive called it CmbSelect. In the data properties for the box i have changed it to "value list" & enterered forma;formb in the row for the list of values and have put the following code, in the after update property:
select case (cmbSelect)
case A
docmd.openform "formA"
case B
docmd.openform "formB"
case else
end select
but at present nothing happens when you try selecting a form from the drop down menu, any ideas what im doing wrong? Please help