Poner texto en mayúsculas en cuadro de texto en Access

En el Generador de expresiones se utiliza la función Mayús ([NOMBRECAMPOAPONERMAYUSC]).

Posted in Uncategorized | Tagged , , | Leave a comment

Restablecer el valor de un campo autonumérico

A veces en un campo autonumérico se pierde la continuidad en la numeración. Esto ocurre porque se borran registros. Cuando se crean nuevos registros después de haber borrado otros, access asigna nuevos números a los nuevos registros, y se pierden los números de los registros que se han borrado.

Para recuperar la continuidad en la autonumeración se puede conseguir creando una consulta de anexar. En el diseño de esa consulta poner en “campo” el número que queremos que se asigne al nuevo registro.

En “anexar a” se pone el campo autonumérico que al que se quiere asignar el número.

También sirve este sistema para conseguir, si nos interesa, que la autonumeración no comience en “1”, sino en el valor que nosotros queramos. Eso se consigue dejando la tabla sin registros -o comenzar una tabla nueva sin añadir registros-, y ejecutando una consulta de anexar como he descrito más arriba.

Posted in Uncategorized | Tagged , , , , | Leave a comment

Get a number from a date in Microsoft Access

https://stackoverflow.com/questions/46588440/ms-access-criteria-get-2-digits-for-months.

To get a number from a date use the function Format and DateAdd. With DateAdd you’ll get the a number from a day or a month with two figures if you wish.

Format(DateAdd(“m”, -1, Now()), “MM”)

If it is used in the expresion builder you should use semicolons instead of commas:

Format(DateAdd(“m”; -1; Now()); “MM”)

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Random numbers in Microsoft Access

Get a integer random number between two numbers:

https://www.techonthenet.com/access/functions/numeric/rnd.php

Int ((upperbound – lowerbound + 1) * Rnd + lowerbound

Example:

Int ((200 – 150 + 1) * Rnd + 150)
Result: random number between 150 and 200

Posted in Uncategorized | Tagged , , , | Leave a comment

Router movistar wifi 6 con extensores wifi (no hacer)

EDITADO (Abril de 2024): Los D-Link DAP-X1860 me han dado también muchos problemas. He intentado usarlos como uno como emisor y otro como receptor, y no me han ido bien. Hay que poner otro tipo de puntos inalámbricos más potentes. En fin, que después de probarlos creo que no es recomendable usarlos para lo que describo más abajo. No borro el post, porque tal vez alguna información relativa a estos aparatos pueda ser útil para otros fines.

Disponemos de un router movistar wifi 6. Necesitamos conexión cableada a dos dispositivos, pero no es posible llevar el cable hasta ellos.
Entonces instalamos dos extensores wifi. Una vez configurados como repetidores wifi que están conectados de manera inalámbrica con el router, pueden ser conectados via ethernet con cualquier dispositivo y brindarle así una conexión cableada.

Movistar ofrece sus propios extensores wifi. Más económicos son los D-Link DAP-X1860, que realizan la misma función.

  • En el Router movistar Wifi 6: Configurar una red wifi 6, con encriptación wpa3.
  • En los D-Link DAP-X1860: Seguir las instrucciones del fabricante y conectarlos al router con red wifi 6. Opcional: Si sólo se quiere dar servicio por ethernet y no se necesita amplificar la red wifi creada por el router se puede desactivar esta función en la interface del D-Link DAP-X1860.
  • OPCIONAL: Si hay dispositivos inalámbricos que no están preparados para wifi 6. Existe la opción de crear una segunda y una tercera red wifi con el router movistar wifi 6, la/s cuales podrían ser wifi5, lo que permitiría ofrecer conexión a dispositivos que no tienen wifi 6. En la práctica esto es problemático porque estas redes secundarias creadas son problemáticas para conectar distintos dispositivos dentro de la misma red local. Un scaner fujitsu no se conectaría inalámbricamente a un ordenador. También cabría la posibilidad de crear esta red wifi5 con los D-LINK DAP-X1860, pero desechamos esta opción, porque queremos toda la potencia de estos extensores dedicada exclusivamente a la salida por ethernet. Por eso hemos optado por la creación de una red wifi5 mediante un punto de acceso conectado al router.

Advertencia: Tener en cuenta también que se ha comprobado que si se configura una red principal wifi6 y una red alternativa wifi5, ambas configuradas en el mismo router, se producen interferencias en la red de 5 Ghz. No podemos confirmar que existan o no en la red de 2.4 Ghz. No sabemos si también aparecerían interferencias con una red 5 Ghz creada desde un punto de acceso. Hemos optado por crear solo una red wifi 5 2.4 Ghz en el punto de acceso, y por ahora ha ido bien.

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

Configurar AP (punto de acceso inalámbrico) Ubiquity Unify 6+.

Thanks to these videos I could set up the Ubiquity Unify 6+ wireless access point (AP).

Posted in Uncategorized | Tagged , , | Leave a comment

Projecting a Powerpoint and a Webcam image (alternating between the two)

Devices:

  • TVs where the image is projected.
  • Laptop with windows 10 LTSC Iot.
  • Webcam Logitech PTZ Pro 2 (connected via USB to the laptop).
  • Android mobile,

Software:

  • Logi Firmware Update Tool for PTZPro2 (freeware).
  • Configuración de cámara Logitech (freeware).
  • Microsoft Power Point.
  • OBS Studio (freeware).
  • Unified Remote Server (freeware) installed in the laptop, and Unified Remote Server app (5 €) installed in the mobile.
  • WinHotkey (freeware).
  • PTZControl (for Logitech PTZ Pro 2) by xMRi (freeware). This software is needed because the plugin for OBS “PTZ Controls” can’t control the PTZ Pro 2 camera.
  • Glass2k (freeware).
  1. The camera is automatically detected by windows. No drivers are needed. Install Logi Firmware Update Tool and update the camera’s firmware.
  2. Install Configuración de cámara logitech. It’s needed to change frecuency from 60 Hz to 50 Hz to avoid image flicker.
  3. Install WinHotkey. Setup it to start with windows. In winhotkey setup hotkeys to open PTZControl (first create a shortcut with hotkeys to PTZControl). In winhotkey setup hotkeys to kill PTZControl process (first create a shortcut with hotkeys to a batch file with just one line: taskkill /IM “PTZContol.exe” /F).
  4. Open PTZControl.
  5. Open Glass2k. Apply transparence to PTZControl window. Set up Glass2k to remember transparence for each window. Set up Glass2k to open at windows startup (it’s needed to copy a shortcut to windows startup folder). PTZControl will be more transparent every time you open it.
  6. Open Microsoft Power Point.
  7. Open OBS Studio. On the “sources” panel click on “+”. Add a “Video capture device”.
  8. Properties of “Video capture device”. Choose device: PTZ Pro 2. Choose type of resolution: “Custom”. Resolution: 1920×1080. Click OK.
  9. Go to “sources” panel. Right click on “Video capture device”. Click on “Trasform”:”Estirar a la pantalla”.
  10. Right click on the camera image in the viewer. Click on Proyector de pantalla completa (Previsualización). Click on 1920×1080.
  11. Press alt+TAB to go to PowerPoint window. Start powerpoint presentation. You can change between powerpoint presentation and full screen webcam image in OBS using alt+TAB buttons.
  12. Using Unified Remote app in the mobile you can create widgets with buttons to:
    • Send alt+tab to laptop.
    • Press right or left buttons to use with powerpoint.
    • Volume up/down/mute.
    • Send shortcut to open PTZControl.
    • Pres “1”, “2”, “3”… to choose in ptzcontrol to select ptz preset 1, 2, 3… in PTZ Pro 2.
    • Send shortcut to close PTZControl.

In order that everytime you open PTZControl the camara doesn’t go to the manufacturing default position, you should open the app from the cmd, adding “-noreset”. Other way is to add a registry key in windows, via regedit (source:https://github.com/xMRi/PTZControl):

In the registry branch HKEY_CURRENT_USER\SOFTWARE\MRi-Software\PTZControl\Options it is possible to preset the following:

NoReset (DWORD value) Value <>0: Has the same function as -noreset on the command line. The current camera and zoom position is maintained when starting the program. Value = 0: When starting the program, you move to the home position and zoom to maximum wide angle. (Default)

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Powerpoint extends display when presenting

To avoid powerpoint extends display every time you use it you should uncheck this box:

Options/Advanced/Display – Automatically extend display on a laptop o tablet.

https://www.thewindowsclub.com/stop-powerpoint-from-extending-display-when-presenting-on-laptop

Posted in Uncategorized | Tagged , , , | Leave a comment

Ángulo de apertura de un foco.

https://www.efectoled.com/blog/es/angulo-apertura-led

Para calcular el ancho de luz que proporciona un foco situado a una altura en metros (b) y con una apertura de ángulo en grados (α):

a = 2 x b x tan(α/2)

Para calcular el ángulo que debe tener un foco para que proporcione un ancho de luz en metros (a), situándolo a una altura en metros (b)

α = 2 x tan-1((a/2)/b)

Nomenclatura:

  • a es el ancho del espacio que se iluminará.
  • α es el ángulo de apertura del haz de nuestra luminaria.
  • b es la altura a la que está la luminaria.
Posted in Uncategorized | Tagged , , , , , | Leave a comment

Codecs

The easiest way to get all media files working in your computer is download and install k-lite codec pack: https://www.codecguide.com/download_kl.htm

I installed the basic version and I could use flac files in powerpoint.

Posted in Uncategorized | Tagged , , , | Leave a comment