G
Guest
Hi There,
I am trying to intergrate an existing database to some web work I have done.
I have A main form for building restaurant menus where items are selected
and stored into a subform. This data is for a printable version of the menus.
However I need to Re-append this data to another table for MySQL and PHP for
the website.
The new table is also a subform:
The Data I need to Parse is:
From the Main Form called 'CreateMenus':
Bar163_Location (Unbound Combo box with List Value) = on Main Form
Menu_Type
(Unbound Combo box with List Value) = on Main Form
From the first subform called 'CreateMenusSub' which has radio filters from
the main form
Desription (Bound to a Table through a Subform on the Main Form)
Price (Bound to a Table in through Subform on the Main Form)
The Table they are to be appended to are in another subform also shown on
the Main form and I have a control button which I am testing out for just the
two controls so far. However it asks me parameter values under the data I am
looking for. Probably because the controls are unbound on the main form. I
can type any data into the dialogue boxes and this then inserts into the New
Subform.
The Event on Click has this code:
Private Sub Upload_All_Click()
On Error GoTo Err_LocalError
DoCmd.SetWarnings False
Dim strSQL As String
strSQL = "INSERT INTO Menu_tbl (Bar163_LocationID, Menu_Type) VALUES ( " & _
Forms![CreateMenus]![Bar163_LocationID] & " , " &
Forms![CreateMenus]![Menu_Type] & " );"
DoCmd.RunSQL strSQL
Exit Sub
Err_LocalError:
MsgBox Err.Description
End Sub
Can anyone help here why the values are then encapsulated into another
Parameter I have to manually type in?
Thanks
Andi
I am trying to intergrate an existing database to some web work I have done.
I have A main form for building restaurant menus where items are selected
and stored into a subform. This data is for a printable version of the menus.
However I need to Re-append this data to another table for MySQL and PHP for
the website.
The new table is also a subform:
The Data I need to Parse is:
From the Main Form called 'CreateMenus':
Bar163_Location (Unbound Combo box with List Value) = on Main Form
Menu_Type
(Unbound Combo box with List Value) = on Main Form
From the first subform called 'CreateMenusSub' which has radio filters from
the main form
Desription (Bound to a Table through a Subform on the Main Form)
Price (Bound to a Table in through Subform on the Main Form)
The Table they are to be appended to are in another subform also shown on
the Main form and I have a control button which I am testing out for just the
two controls so far. However it asks me parameter values under the data I am
looking for. Probably because the controls are unbound on the main form. I
can type any data into the dialogue boxes and this then inserts into the New
Subform.
The Event on Click has this code:
Private Sub Upload_All_Click()
On Error GoTo Err_LocalError
DoCmd.SetWarnings False
Dim strSQL As String
strSQL = "INSERT INTO Menu_tbl (Bar163_LocationID, Menu_Type) VALUES ( " & _
Forms![CreateMenus]![Bar163_LocationID] & " , " &
Forms![CreateMenus]![Menu_Type] & " );"
DoCmd.RunSQL strSQL
Exit Sub
Err_LocalError:
MsgBox Err.Description
End Sub
Can anyone help here why the values are then encapsulated into another
Parameter I have to manually type in?
Thanks
Andi