Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

problem the loadin data

$
0
0
do not load the data in form
I press the enter key and call the function but this function call and do not load data,after that stuck the program
I,m using access data base
hear is my code
Private Function loaddataM()
    Rs.Open "SELECT * FROM Member_Type WHERE MTypeCode=" & Val(txtmtypeId.Text) & "", conString, adOpenDynamic, adLockOptimistic
    
    If Rs.BOF Then
    
        txtmtypeId.Text = Val(Rs.Fields("MTypeCode"))
        txtMdiscription.Text = Trim(Rs.Fields("Discription"))
        
    End If
    
   Rs.Close
   
End Function



Private Sub txtmtypeId_KeyPress(KeyAscii As Integer)

    If KeyAscii = 13 Then
        Call loaddataM
    End If
    
End Sub


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>