G
Guest
I am trying to create a form where you can selet from an option group and
then narrow down your selection with a combo box to gererate a report. I
have copied a string of text from another form. But I can't seam to get it
to work. Can some let me know what the varsortby value means?
Dim stDocName As String
Dim varhowsort As Variant
Dim vardate As Variant
Dim vardateto As Variant
varsortby = Me!Frame108
vardate = Me!Combo1
vardateto = Me!Combo6
varfm = Me!Combo2
stDocName = "WRAbyDate"
If varsortby = 1 And vardate = "" And vardateto = "" And varfm = "" Then
DoCmd.OpenReport stDocName, acViewPreview
then narrow down your selection with a combo box to gererate a report. I
have copied a string of text from another form. But I can't seam to get it
to work. Can some let me know what the varsortby value means?
Dim stDocName As String
Dim varhowsort As Variant
Dim vardate As Variant
Dim vardateto As Variant
varsortby = Me!Frame108
vardate = Me!Combo1
vardateto = Me!Combo6
varfm = Me!Combo2
stDocName = "WRAbyDate"
If varsortby = 1 And vardate = "" And vardateto = "" And varfm = "" Then
DoCmd.OpenReport stDocName, acViewPreview