good morning
If somebody guides me porfa
I'm doing a car registration application on the form I need to print a vehicle entry ticker
Vb.net sql server crystal report
Private Sub Btn_Registrar_Click (sender As Object, and As EventArgs) Handles BtnRegistrar.Click Dim objregistrar As New BLLRegistroTicker Dim evergistroEntry As New VregistroEntrada Dim Result As Integer = 0 try If Txt_Placa.Text.Trim = "" Then MsgBox ( "GET THE REGISTRATION", MsgBoxStyle.Exclamation, "EMPTY DATA") Else Evergistro_Entrada.Placa = TxtPlaca.Text Evergistro_Entrada.FechaHoraEntrada = TxtDateEntry.Text Evergistro_Entry.Code = Txt_Code.Text Result = objregistrar.Insert (input_register) If Result> 0 Then To generate () 'alias numbers Codigobarra () 'barcode in the pinturebox Call columns () 'LblComanda.Text = Result.ToString MessageBox.Show ( "The command was successfully saved", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Information) DvgPatentes.DataSource = objregistrar.MOSTRAR_MATRICULAS (evergistro_Entrada) Clean_matricula () Txt_Placa.Focus () Else MessageBox.Show ( "Could not record the Ticker", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning) MessageBox.Show ( "No data on Ticker to record", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning) exit sub End If End If Catch ex As Exception MessageBox.Show (ex.Message, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error) End Try End Sub
What this code does is register the auto registration
Sql query code
Select patent, Feha_Hora, Code from Registro where Code = @ code