Open Form with Combo Box Value

W

weircolin

Hi There

Can anyone tell me why the following isn't working please?

Dim stDocName As String
Dim stLinkCriteria As String
Dim stcombo As Integer

stcombo = cboselectevent.Value

DoCmd.OpenForm "Attendee", WhereCondition:="[Event] = stcombo"





It just asks me to enter a value for stcombo

Cheers

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top