|
Long Island Lune -> RE: Access Database in Frontpage (8/20/2002 14:55:10)
|
Benny, That is what FP generated for you??? I was expecting something like this: INSERT INTO SwimteamsDB (E-mail, Club, Phone, State, Zip, City, Address) VALUES ' ::Email::' , ' ::Club::' , ' ::Phone::' , ' ::State::' , ::Zip::, ' ::City::' , ' ::Address::' ) In your first post you said you used the FDW. What is that? Do you mean that you used the DRW??? Creating a form is a relatively simple endeavor. Then posting it to a second page is simple to. On the second page you create another DRW. Here is what I would have done: 1): Create the form you want on page 1. 2): Post the form to page 2. 3): On page 2, run the DRW. On Page Two Using the DRW: In Step 1 of 5 - select your database connection in the drop down list box. In Step 2 of 5 - select " Custom Query" , then click on " Edit" . In the Edit box, enter the SQL I just gave you above. Complete the remaining Steps 3 to 5 in the DRW. Since you are putting data into the database, you do not need to see anything, so... In Step 4 of 5, select " Table - one record per row" . UNSELECT anything below it. In Step 5 of 5, click on " Display all records together" and UNSELECT anything else in Step 5. This will show nothing on your page. In the SQL query I listed above, replace " SwimteamsDB" with whatever your actual table name is (if SwimteamsDB is not the table name). Also, I would change the field name of " E-mail" to " Email" in your query and in MSAccess too. And remember one thing: Text-Fields are entered as ' ::Zip::' , whereas Numeric-Fields are entered as ::Zip:: in the SQL Query line I gave you (above). I don' t know what data types your fields are. I only guessed. Adjust them accordingly if the SQL I gave you does not work. Chances are that you did not enter the field types correctly. Last Note: Make sure the field types in your Access database table MATCH the field types in your SQL query. That should do it. Do you want to try that??? It' s easier and gets the job done. Let me know what happens
|
|
|
|