The 1 is generated by FP any time you try to use the DBRW to select a table (in Select * from ...)
TBMK
The FP DBRW can not use a conditional table name because it is totally dependent on the webot generated field info from a
predetermine table
| Where did the "1" come from?
|
| Is it possible you have a drop-down list configured along the lines of:
|
| <select size="1" name="fieldname">
| <option value="1">2001</option>
| <option value="2">2002</option>
| <option value="3">2003</option>
| </select>
|
| If so, you need to put the full year numbers (table names) in the value=
| attributes.
|
| I must observe, however, that this sort of approach is hardly recommended
| practice. You should really combine all the yearly tables into one and then
| select the year you want.
|
| Jim Buyens
| Microsoft MVP
|
http://www.interlacken.com
| Author of:
| *-----------------------------Â-----------------------
||\----------------------------Â-----------------------
||| Microsoft Windows SharePoint Services Inside Out
||| Microsoft Office FrontPage 2003 Inside Out
|||----------------------------Â-----------------------
||| Web Database Development Step by Step .NET Edition
||| Microsoft FrontPage Version 2002 Inside Out
||| Faster Smarter Beginning Programming
||| (All from Microsoft Press)
||/----------------------------Â-----------------------
| *-----------------------------Â-----------------------
|
| "Don E" wrote:
|
| > I'm using FP 2002 and I am having troble with the Database Results. I have
| > several tables in my database with each having the name of a year. Example
| > (1998) How can I use a Form field to select which table to display the
| > results? I have tried Select * from ::fieldname:: and I get an error.and
| > the query end up being Select * from 1
| >
| >
| >
| >