Hi:
I have two tables in my Access database, tblBase and tblRIP. Both of these tables have field names in common. The fields contain different data, but simply have the same names. For example, both tables have a field called fldAsstCoordina tor. It's just that the numbers under this field name in tblBase are different from the numbers under the same field name in tblRIP...
My question is this. When referencing these tables in Visual Basic, how do I differentiate between the two? Right now, when I put in
where txtBaseRate is just a textbox on my main form, and rst is the recordset based on a SQL query containing all the tables in my database, I get an error "3265 - Item not found in this collection".
I'm explicitly telling VB which table to pull the information from (i.e. tblBase and not tblRIP) - so why is it giving me an error?
Thanks in advance for any help that you can offer...
Pat
I have two tables in my Access database, tblBase and tblRIP. Both of these tables have field names in common. The fields contain different data, but simply have the same names. For example, both tables have a field called fldAsstCoordina tor. It's just that the numbers under this field name in tblBase are different from the numbers under the same field name in tblRIP...
My question is this. When referencing these tables in Visual Basic, how do I differentiate between the two? Right now, when I put in
Code:
.txtBaseRate = rst![tblBase].[fldLfgd]
I'm explicitly telling VB which table to pull the information from (i.e. tblBase and not tblRIP) - so why is it giving me an error?
Thanks in advance for any help that you can offer...
Pat
Comment