Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Topics

Recent Status Updates

View All Updates

- - - - -

Visual Basic Coding In Microsoft Accesss 2003

VB Visual Basic Microsoft Access Database Microsoft Access 2003

  • Please log in to reply
No replies to this topic

#1 Frapps


    CC Lurker

  • New Member
  • Pip
  • 8 posts
  • Location:Philippines
  • Programming Language:C, Java, C++, C#, (Visual) Basic, JavaScript, PL/SQL, Visual Basic .NET
  • Learning:PHP, Python, Perl, Ruby, Delphi/Object Pascal, Lisp, Pascal, Fortran

Posted 06 May 2012 - 06:19 PM

*Here's my code in search button..
Private Sub cmdSearch_Click()
If Len(PHempid) = 0 Or IsNull(EmployeeID) = True Then
MsgBox "You must select a field to search."

End If
If PHempid = Form_HbIRegistration.EmployeeID.Value = True Then
PHemplname.Value = Form_HbIRegistration.EmployeeLname.Value
PHempfname.Value = Form_HbIRegistration.EmployeeFname.Value
PHempmname.Value = Form_HbIRegistration.EmployeeMname.Value

End If

End Sub



The program can already search for a matching ID, but it only displays 1 result. When we try to use the search button again with a different ID ,the values displayed on the text boxes for the ID values do not change. They still display the values equal to the previous ID.
  • 0

Also tagged with one or more of these keywords: VB, Visual, Basic, Microsoft, Access, Database, Microsoft Access 2003

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download