I have a field of a table that has a date in the following format:
OCT-1-06
I wrote a data base in VB that will do something specific if this field is OCT-1-06, or will do something else if this field is OCT-2-06, so on and so forth. My dilema is actually checking what the information is in this field and my coding is basically the following. Please tell me what I need to do differently to not get the EOF BOF error:
Dim Period as Date/String(not sure which)
Period=tblO1.fields.item("Period")
If Period = "OCT-1-06" Then
more code will go here
else if Period = "OCT-2-06" Then
do this instead
end if
Not exact on the rules here. What is the correct coding for this.
Thanks
Adam
OCT-1-06
I wrote a data base in VB that will do something specific if this field is OCT-1-06, or will do something else if this field is OCT-2-06, so on and so forth. My dilema is actually checking what the information is in this field and my coding is basically the following. Please tell me what I need to do differently to not get the EOF BOF error:
Dim Period as Date/String(not sure which)
Period=tblO1.fields.item("Period")
If Period = "OCT-1-06" Then
more code will go here
else if Period = "OCT-2-06" Then
do this instead
end if
Not exact on the rules here. What is the correct coding for this.
Thanks
Adam