So you want to use your phone as a "Hotspot" for the other device.
Now if your phone has a data plan, which is how you get internet for it, and you have WiFi capabilities on your tablet, then you can connect using the info below.
However, if the phone is connecting to WiFi (not a data plan) and you can't connect the tablet directly to the WiFi that connects to your phone, then you won't be able to access the it through the phone. For it to work, your tablet has to have it's own ability to connect to WiFi, and if the phone is connecting to a WiFi connection, then the tablet would be able to use that same thing. No phone involved.
You have to have a data plan on the phone and you have to have WiFi capabilities on the tablet if you want to use the info below.
If it is at all possible it would be done this way...
1. Go into "Settings" and in the "Wireless & networks" section tap "More".
2. Now tap "Tethering & portable hotspot".
3. For "Wireless Tethering" tap "Set up Wi-Fi hotspot"
4. On this new screen you will see options for a "Network Name", "Security", "Password" and "Network Band". You can change them or keep them as is. It is really up to you.
5. Now you would just need to search for the hotspot by name using the second device.
NOTE: While a Wi-Fi hotspot feature is built into Android, some service providers/carriers, especially in the United States, hide it. You would then need to see if you can locate an app that you can install to help with this.