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.

Error en consulta

publicado

Que tal como estan..... soy nuevo en esto de empezar hacer macros en excel, y tratando de hacer la siguiente consulta

Private Sub CargarData1()
Set rs = New ADODB.Recordset
'consulta = "SELECT * FROM example"
consulta = "Select idappact, codappact, desapeta, desapsub, nomapact, resappact, Date_format(fecappini,'%d/%m/%y'), " & _
" Date_format(fecappfin,'%d/%m/%y'), Date_format(fecapprea,'%d/%m/%y'), porappava, obsappact, diaapact, obsextact From appactividades " & _
" INNER JOIN apetapas on idapeta = idappeta INNER JOIN apsubetapas on idapsub = idappseta " & _
" INNER JOIN apactividades on idapact = idappact1 WHERE codappact = '" & [b2] & "' "
rs.Open consulta, conexion, adOpenStatic

On Error Resume Next
rs.Close
Set rs = Nothing
conexion.Close
Set conexion = Nothing
On Error GoTo 0

End Sub
[/PHP]

me marca error en esta linea Set rs = New ADODB.Recordset

No se ha definido el tipo definido por el usuario....

Saludos y gracias!!

Featured Replies

publicado

Hola:

Le falta incluir la referencia a la librería Microsoft ActiveX Data Objects x.xx.

Tampoco veo la conexión con la base de datos por ninguna parte.

[ATTACH]36477.vB[/ATTACH]

Saludos

post-0-145877006879_thumb.jpg

publicado
  • Autor

gracias me faltaba la referencia.........;)

- - - - - Mensaje combinado - - - - -

gracias me faltaba la referencia.........;)

- - - - - Mensaje combinado - - - - -

gracias me faltaba la referencia.........;)

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.