Find Jobs
Hire Freelancers

VB6 code to set up an Array in a data_report

$5-10 USD

Terminado
Publicado hace más de 21 años

$5-10 USD

Pagado a la entrega
I need somebody to show me how to use the following code to build an array (I believe this is the best way to do this). I am pulling between zero and 50 times from a schedule database with the following code. Once I pull the recordset, I want to display the schedule, but can't figure out how to do it. What do I need to do this? You can put code in the data_report, but that's it. The code below will basically put one row into my data_report, but if there are 50 recordsets, only the last one appears. How do I have controls made on the fly to fit the number of records returned, without having to set up tons of labels at design time? Thanks Jon Private Sub DataReport_Initialize() 'get schedule Dim cnn1 As [login to view URL] Dim strQry As String Dim rs As [login to view URL] strQry = "Select * from Scheduling Where [login to view URL] Like '" & p_ScheduleDate & "' Order By [login to view URL]" Set cnn1 = New [login to view URL] [login to view URL] = g_ADOschedule [login to view URL] Set rs = GetRecordSet(cnn1, strQry) 'get the recordset [login to view URL](1).Controls(1).Caption = p_ScheduleTitleDate Do While [login to view URL] = False If Not IsNull(rs!Date) Then VisitTime = Format((rs!Date), "hh:mm AMPM") Else VisitTime = "" End If If Not IsNull(rs!name) Then name = rs!name Else name = "" End If If Not IsNull(rs!Phone) Then Phone = rs!Phone Else Phone = "" End If If Not IsNull(rs!VisitType) Then VisitType = rs!VisitType Else VisitType = "" End If If Not IsNull(rs!Booker) Then Booker = Left(rs!Booker, 10) & " " & Format(rs!DateBooked, "mm/dd/yy") Else Booker = "" End If [login to view URL] Loop Set cnn1 = Nothing Set rs = Nothing [login to view URL](3).Controls(1).Caption = VisitTime [login to view URL](3).Controls(2).Caption = name [login to view URL](3).Controls(3).Caption = Phone [login to view URL](3).Controls(4).Caption = VisitType [login to view URL](3).Controls(5).Caption = Booker End Sub ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased. ## Platform win ## Deadline information I'm not looking for anything fancy, just some good and well commented code which will turn this one rs into 50, if need be.
ID del proyecto: 2874408

Información sobre el proyecto

12 propuestas
Proyecto remoto
Activo hace 22 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$7 USD en 14 días
5,0 (1 comentario)
0,0
0,0
12 freelancers están ofertando un promedio de $6 USD por este trabajo
Avatar del usuario
See private message.
$8,50 USD en 14 días
4,7 (37 comentarios)
5,0
5,0
Avatar del usuario
See private message.
$8,50 USD en 14 días
5,0 (36 comentarios)
4,6
4,6
Avatar del usuario
See private message.
$6,80 USD en 14 días
4,8 (23 comentarios)
3,0
3,0
Avatar del usuario
See private message.
$3,40 USD en 14 días
3,3 (4 comentarios)
1,6
1,6
Avatar del usuario
See private message.
$4,25 USD en 14 días
2,3 (4 comentarios)
1,4
1,4
Avatar del usuario
See private message.
$5,95 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$5,95 USD en 14 días
0,0 (1 comentario)
0,0
0,0
Avatar del usuario
See private message.
$3,40 USD en 14 días
0,0 (1 comentario)
0,0
0,0
Avatar del usuario
See private message.
$8,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$6,80 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$8,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
5,0
114
Miembro desde dic 13, 2001

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.