NEW YORK — The upward trend in energy prices showed no sign of abating Wednesday as gasoline set yet another record at the pump and crude oil topped $112 a barrel for the first time in the futures market.

The national average price of a gallon of regular unleaded gas rose 1.2 cents to a record $3.343 a gallon, according to a survey of gas stations by AAA and the Oil Price Information Service. With the peak summer driving season still to come and gas following crude higher, the fuel may well reach the retail price of $4 a gallon that the Energy Department has been forecasting.

But prices that are 55 cents higher than a year ago are hurting demand for gasoline, which fell last week by nearly 2 percent from year-earlier levels, the department's Energy Information Administration said in its weekly inventory report.

"People are cutting back on gasoline purchases because the economy is squeezing them right now," said Phil Flynn, an analyst at Alaron Trading Corp. in Chicago.

The EIA report, closely watched by the futures market, also said crude oil supplies fell by a surprising 3.2 million barrels last week; analysts surveyed by Dow Jones Newswires, on average, had expected an increase of 2.4 million barrels.

That sent light, sweet crude for May delivery up $3.05 to $111.55 on the New York Mercantile Exchange after earlier rising as high as $112.21. That bests a trading record of $111.80 set last month.

Analysts expect demand for gas and oil to fall further as prices rise. Theoretically, that should bring prices down. But so far this year, gas and oil prices have shown little inclination to fall in response to eroding demand. With gasoline supplies shrinking and the summer approaching — when demand, while weaker than last year, will be stronger than it is now — consumers may have to wait until this fall for price relief.

Some analysts cautioned against reading too much into last week's drop in crude supplies.

"We note there was a sharp decline in crude oil imports," said Eric Wittenauer, an analyst at Wachovia Securities LLC in St. Louis, in a research note.

Flynn believes crude imports fell because fog closed the Houston Shipping Channel, a vital oil import conduit, several times last week. "That leads me to suspect that there are more ships out there in the Gulf (of Mexico) that didn't get counted," he said.

Before the EIA issued its report, oil prices were already higher due to the dollar's slide against the euro Wednesday. Many investors see commodities such as oil as an effective hedge against a falling dollar and inflation. Also, a weaker greenback makes oil cheaper to investors overseas.

Analysts attribute much of oil's rise this year to speculative buying tied to the falling dollar. With the Federal Reserve expected to cut rates several more times this year, which will likely further weaken the dollar, oil prices may continue rising despite tepid demand.

The EIA also said supplies of gasoline and distillates, which include diesel fuel and heating oil, fell more than expected last week. May gasoline futures rose 3.75 cents to $2.7879 a gallon on the Nymex — a price move that could also affect what consumers are paying at the pump.

May heating oil futures rose 12.18 cents to $3.232 a gallon after earlier rising to a trading record of $3.2445 a gallon.

In other trading, May natural gas futures rose 36.8 cents to $10.065 per 1,000 cubic feet.

In London, May Brent crude futures rose $2.54 to $108.88 a barrel on the ICE Futures exchange.