Click here to Skip to main content
16,018,529 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
if NOT rs.eof then
rs.Fields(0).Value = Text1
rs.Fields(1).Value = Text2
rs.Fields(2).Value = Text3
rs.Fields(3).Value = Text4
rs.Fields(4).Value = Text5
If Option1.Value = True Then
rs.Fields(5).Value = Option1.Caption
Else
rs.Fields(5).Value = Option2.Caption
End If
rs.Fields(6).Value = Text6
rs.Fields(7).Value = Text7
rs.Fields(8).Value = Text8
rs.Fields(9).Value = Text9
rs.Fields(10).Value = Text10
rs.Fields(11).Value = trext11
MsgBox ("data is saved successfully"), vbInformation
rs.Update
end if
Posted
Updated 8-Aug-16 4:36am
v2
Comments
Richard MacCutchan 6-Aug-16 7:32am    
What?
OriginalGriff 6-Aug-16 8:26am    
Now, you know that question you asked yesterday in the lounge? :laugh:
Richard MacCutchan 6-Aug-16 8:29am    
lol
OriginalGriff 6-Aug-16 8:24am    
And?
What is the problem?
Where are you stuck?
What help do you need?
Member 12672959 6-Aug-16 8:32am    
after running the code it shows run-time error 3021
it says either bof or eof is true, or the current record has been deleted.
requested operations requires a current record.

1 solution

BOF stands for Beginning of file and EOF is End of file. In normal words, it is saying that there is no record so you cannot try accessing it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900