The ceiling light fixture requires a neutral for the light to work and your wall switch box does not have a neutral wire available so additional wiring will be required to obtain the neutral wire from the outlet.
How to connect a ceiling light to a wall switch.
How to connect ceiling light wires.
To do this method the wire from your wall circuit to your light has to have 3 wires.
The fan has power when the switch is on while the fan speed and the light if the fan has one are controlled by pull chains on the fan itself or by a remote control device.
Connect black fan wire to the black ceiling wire.
No house seems to have exactly the right lights in the right place with convenient safe switches.
Connect the electrical wire to your source of power using the pliers and wire nuts and fish it through the joists until it reaches the light switch.
If the wall is heavily insulated push conduit through the insulation and then feed wires or cable through the conduit.
Split the incoming hot wire into a y and connect it to a terminal on each switch.
Common applications include ceiling or hallway light switches a cellar or attic light a ceiling fan or chandelier or an outdoor patio light.
Ceiling lights operate using a switch on the wall or a pull chain that s attached to the fixture.
With single switch wiring power to the fan is controlled by a standard single pole wall switch like a regular light switch.
A single pole wall switch usually has a lever or toggle that completes the circuit when it is flipped up to turn a light device or appliance on.
Adding a wall switch to a ceiling fixture can be done in a matter of hours.
Pick a single pole light switch for most applications.
Drill through the floor in the correct stud bay and send the wires for the switch and the light up to the switch using the fish tape.
Even if a plug in hanging lamp is where you want it built in wiring is safer more convenient and easier on the eyes.
Wires inside the electrical box at the ceiling and at the.
In the switch box.
Install a ceiling light and switch.
Got light where you need it.
The biggest challenge is planning the cable route and running it from the fixture to the new wall switch position.
From what has been described in this question it appears that a neutral wire is not available at the wall switch.