Katana2003
Programmer
I am currently writing a piece of code that will let the end users pick from a list of business documents to preview, however there are going to be a lot of documents so I was thinking of using a combo box and a button that accepts.
This is ware I have the problem I can't pick out the values of the combo box this is the code that I am currently trying any advice will be grateful.
This is a test script with only two documents in it hope this is enough for you.
'using the combo box print_format preview test print
'using the combo box print_format preview Std quote
This is ware I have the problem I can't pick out the values of the combo box this is the code that I am currently trying any advice will be grateful.
This is a test script with only two documents in it hope this is enough for you.
'using the combo box print_format preview test print
Code:
If print_format = 1 Then
DoCmd.OpenReport "test_print", acViewPreview
End If
Code:
If print_format = 2 Then
DoCmd.OpenReport "std_quote", acViewPreview
End If