H
homer
I have this line of code working.
Form2 Form_load
currentdb.QueryDefs("qryPassthrough").SQL = "Exec INV_getParentItemBYID
" & Me.OpenArgs
I also have a combo box (cboParentItem) on Form2 that ties to the
qryPassthrough as its row source.
How should I run the P_T, then tie the returned values to the combo?
If I run
DoCmd.OpenQuery ("qryPassthrough")
cboParentItem.Requery
The result will open in its own grid.
With or without DoCmd, the combo would get data until the click event.
Also, if the P_T did not return any thing, I want to do something like this:
cboParentItem.RowSourceType = "Value List"
cboParentItem.ColumnWidths = "2 in;0 in"
cboParentItem.RowSource = "There is no parent info available"
cboParentItem.DefaultValue = "There is no parent info available"
how can I check the result of the P_T, then take action accordingly?
Thanks!
Form2 Form_load
currentdb.QueryDefs("qryPassthrough").SQL = "Exec INV_getParentItemBYID
" & Me.OpenArgs
I also have a combo box (cboParentItem) on Form2 that ties to the
qryPassthrough as its row source.
How should I run the P_T, then tie the returned values to the combo?
If I run
DoCmd.OpenQuery ("qryPassthrough")
cboParentItem.Requery
The result will open in its own grid.
With or without DoCmd, the combo would get data until the click event.
Also, if the P_T did not return any thing, I want to do something like this:
cboParentItem.RowSourceType = "Value List"
cboParentItem.ColumnWidths = "2 in;0 in"
cboParentItem.RowSource = "There is no parent info available"
cboParentItem.DefaultValue = "There is no parent info available"
how can I check the result of the P_T, then take action accordingly?
Thanks!