I have a form with a FSC field that has a percentage value. I'm wanting to fill that value with data from a "lookup" table. I'm aware of how to get this done in excell but am having problems with access. I've been searching for a while and come across querydef's which have only confused me more. My lookup table has dates in one field and values such as ".1", ".12", ".15" in the other.
I found an example of:
[code=vb]Set qdf = CurrentDb.Creat eQueryDef("", "SELECT T1.Increment FROM Table1 AS T1 WHERE T1.Value1=(SELE CT Min(T2.Value1) FROM Table1 AS T2 WHERE T2.Value1>=[Value];);")[/code]
I can get this to work with double data type, but can't figure out how to lookup by date. Any help would be appreciated.
I found an example of:
[code=vb]Set qdf = CurrentDb.Creat eQueryDef("", "SELECT T1.Increment FROM Table1 AS T1 WHERE T1.Value1=(SELE CT Min(T2.Value1) FROM Table1 AS T2 WHERE T2.Value1>=[Value];);")[/code]
I can get this to work with double data type, but can't figure out how to lookup by date. Any help would be appreciated.
Comment