Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Extraer valores unicos de acces

publicado

hola amigos buen dia

construyo una base en acces que se alimenta a traves de un

formulario de excel , y llege un punto que no he podido solucionar, y es que deseo extraer datos unicos de una tabla de acces a un listbox de excel y pues este es el codigo que utilizao,

Call conexion

Set rs = New ADODB.Recordset

With rs

.CursorLocation = adUseClient

.CursorType = adOpenKeyset

.LockType = adLockOptimistic

.Open "BDFOLIOS", cnn, adOpenKeyset, adLockOptimistic, adCmdTable

End With

For a = 1 To 130

If rs.Fields("FACTURAPOST") <> "" And rs.Fields("ESTADOFACTURACION") = False Then

combo1.Add CStr(rs.Fields("FACTURAPOST").Value)

End If

rs.MoveNext

Next a

' organizar datos en el listbox

For I = 1 To combo1.Count - 1

For j = I + 1 To combo1.Count

If combo1(I) > combo1(j) Then

ref1 = combo1(I)

ref2 = combo1(j)

With combo1

.Add ref1, before:=j

.Add ref2, before:=I

.Remove I + 1

.Remove j + 1

End With

End If

Next j

Next I

' agregar datos al listbox

For Each dato In combo1

ListBox3.AddItem dato

Next dato

rs.Close

Set rs = Nothing

saludos

Featured Replies

No hay posts para mostrar

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.