Table reference

This may or may not help, but I've had similar problems with figure references where the figure number inserted into the text in place of the \ref command was wrong. I managed to solve it by putting the \label inside the figure's \caption, viz:

\begin{figure}
\caption{Some caption.\label{fig:some-figure}}
\includegraphics{some-figure.eps}
\end{figure}

It's difficult to say more without a more extensive example of what's going wrong, though!


In my case I solved it by writing \caption and \label together.

\caption{Test table}
\label{tb:testTable}