Question : MS ACCESS 2007 Form & VBA Code Question

Hi,

I have a MS Acess 2007 form. The form has two combobox state,city & a button. On click of a buttton I have a function which will take the value from the combobox of state & City into a variable. Then I need to get address info from StateCity table based on state & City field.

After getting the address field value from statecity table, I need to assign the address field value to a textbox field name address_textbox in the same form.

Please help me how to code this in VBA.

Please find below my function name & comments that I need to do inside function.

Thanks a lot in advance!








1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Function GetAddress()

' Get Combobox value for state & City from the form

' Query Database table StateCity for address field by passing state & City value of form

'Assign the address field value to textbox address_textbox 



End Function

Answer : MS ACCESS 2007 Form & VBA Code Question

If you are testing for the exact string, then you can add the start/end of line markers:
1:
^(?:100|\d{1,2}(?:\.\d{1,2})?)$
Random Solutions  
 
programming4us programming4us