Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i convert this code to javascript

Status
Not open for further replies.

Makumbi256

Programmer
Mar 1, 2022
3
UG
Note: i would want to read the data from the table newstreamtrap in the database then iam using MVC visual studio 2019
Code:
Dim audit As New ADODB.Recordset
audit.Open "Newstreamtrap", CurrentProject.Connection
   audit.Find ("stream= '" & Forms!studentsearch!ADDNEW!STREAM & "'")
   If audit.EOF Then
     ' MsgBox ("not found")
   Else
   If audit!dif <= 0 Then
    MsgBox ("THIS STREAM IS ALREADY FULL"), vbCritical, "UNIFORM MANAGER"
    Forms!studentsearch!ADDNEW!STREAM = Null
    'Me.Undo
    Exit Sub
 End If
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top