Combobox issue in Access VBA -


i trying set combobox's value default one, problem data source query return integer type , want default value "*", when try :

private sub labelwklstid_dblclick(cancel integer) me.worklistidselector.value = mid(me.worklistidselector.defaultvalue, 2, 1) end sub 

it didn't work getting " invalid value " error, when try int works :

me.worklistidselector.value = 1 

how can make combobox accept "*". appreciated

edit:

  • rowsource= select tworklist.worklistid, tworklist.projectid tworklist group tworklist.worklistid, tworklist.projectid having (((tworklist.projectid)=[forms]![fmain]![projectid])) order tworklist.worklistid;
  • bound column = 1
  • column widths =2,54cm

select tworklistid id, other fields tworlklist etc union select '*" id, 0,0,0(dummy blank other fields)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -