I am upsizing my database to SQL server, and have cone across a small problem.
I have two comboboxes on one form. The first holds a title, and the second holds the value for that title.
The record source is a table which brings them together using three fields: ParentID,TitleID,RatingID
The Title Combobox works fine with an SQL select statement. The rating combobox on the other hand doesnt.
Its old code was:
SELECT [optCompRatings].[Value] FROM optCompRatings WHERE [optCompRatings].[CompID]=TitleCombo.value
now the upsizing wizard has replaced this with a parameter procedure that returns the correct results. Problem is that it now prompts me to enter the value.
The rowsource of the combo is: ut_qry5
i have tried: ut_qry5 (TitleCombo.Value), ut_qry5 @TitleCombo_Value=TitleCombo.Value and other small variations.
I cant find anything in the help files and it is driving me mad. The function needs to be run every time the TitleCombo changes its value.
I'm really pulling my hair out on this one - I seriously hope someone can help me out.
I have two comboboxes on one form. The first holds a title, and the second holds the value for that title.
The record source is a table which brings them together using three fields: ParentID,TitleID,RatingID
The Title Combobox works fine with an SQL select statement. The rating combobox on the other hand doesnt.
Its old code was:
SELECT [optCompRatings].[Value] FROM optCompRatings WHERE [optCompRatings].[CompID]=TitleCombo.value
now the upsizing wizard has replaced this with a parameter procedure that returns the correct results. Problem is that it now prompts me to enter the value.
The rowsource of the combo is: ut_qry5
i have tried: ut_qry5 (TitleCombo.Value), ut_qry5 @TitleCombo_Value=TitleCombo.Value and other small variations.
I cant find anything in the help files and it is driving me mad. The function needs to be run every time the TitleCombo changes its value.
I'm really pulling my hair out on this one - I seriously hope someone can help me out.