
Originally Posted by
4U
K... Tnx guys...
Here is another problem i've encountered. Please HELP ASAP. Tnx!...
================================================== ==============
Private Sub DB_PersonalProfile_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
If DB_PersonalProfile.Recordset.EOF = True Then
DB_PersonalProfile.Recordset.Cancel
ElseIf DB_PersonalProfile.Recordset.BOF = True Then
DB_PersonalProfile.Recordset.Cancel
Else
imgPhoto.Picture = LoadPicture(DB_PersonalProfile.Recordset.Fields("P hoto"))
lstSex.Text = DB_PersonalProfile.Recordset.Fields("***")
lstStatus.Text = DB_PersonalProfile.Recordset.Fields("Civil Status")
dtpBirth_Date.Value = DB_PersonalProfile.Recordset.Fields("Birth Date")
lstNumb_Children.Text = DB_PersonalProfile.Recordset.Fields("Children Qty")
End If
End Sub
================================================== ==============
Problem: The specified objects, in the Else of the IF ELSE Statement, will display or takes effect only after a 2nd move of the ADODC Object. What is the simpliest way to solve this problem?
All you guys helped me a lot in my project. I'm just a newbie. Thanks so much & hope you can still help me on this too. Good Bless!...