-
Still can't get custom form to work!! Please help!
THIS SHORT BIT OF CODE:
<%
Set MyDb = Server.CreateObject("ASPDB.EP"
MyDb.dbmdb=Server.MapPath("PMQA.mdb"
MyDb.dbStartup = "EditAdd"
MyDb.dbUnit=333449
MyDb.dbMode="Form"
MyDb.dbColor = "#FFFACD,Black,E6E6FA,Black"
MyDb.dbEditParams = "(;,)TableName=[Customer Info], BookMarkFlds=0, UpdateIcon=True, EditIconsLayout=Left"
MyDb.dbEditFlds = "OrderNo, QACheckStatus, Checkedby"
MyDb.dbEditAddTemplate = "AddForm2.htm"
MyDb.dbNavigationItem = "Top,Prev,Next,Bottom,Reload,Update,Add" ;
MyDb.dbSQL = "Select * from [Customer Info]"
MyDb.dbEditAddSQL = "INSERT INTO [Customer Info] (OrderNo, QACheckStatus, Checkedby ) VALUES ('#OrderNo', '#QACheckStatus#', '#Checkedby#'"
MyDb.aspDBEP
Response.Write ("<br><br><center><a href='http://scl4apweb05/rich_paino/SelectIDC.htm'>Return to the Main Screen</a>"
%>
DOESN'T WANT TO WORK WITH THE FORM CODE BELOW. I JUST GET A BLANK SCREEN. IF I COMMENT OUT THE "dbEditAddTemplate" line I GET THE STANDARD INPUT FORM JUST FINE. PLEASE HELP!
<body>
<body>
[[FormTag]]
<BR><BR>Order #:
<INPUT TYPE=TEXT NAME="OrderNo" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="QACheckStatus" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="Checkedby" VALUE=' '><br><br>
[[AddSubmitButton]]
[[ReturnButton]]<BR><BR>
[[/FormTag]]
</body>
-
Still can't get custom form to work!! Please help! (reply)
I've tried it with just the filename and it still doesn't work.
------------
Nancy Steinmann at 5/25/01 1:33:36 PM
On the example I saw, you have to put Server.MapPath in front of your template file name.
Nancy
-
Still can't get custom form to work!! Please help! (reply)
ASP-db GOLD is Required for Templates. See:
http://www.usintertech.com/matrix.shtm
Mark
------------
Nancy Steinmann at 5/25/01 1:33:36 PM
On the example I saw, you have to put Server.MapPath in front of your template file name.
Nancy
-
Still can't get custom form to work!! Please help! (reply)
get rid of the "#" and see what happens.
FK
------------
Rich Paino at 5/25/01 10:58:26 AM
THIS SHORT BIT OF CODE:
<%
Set MyDb = Server.CreateObject("ASPDB.EP"
MyDb.dbmdb=Server.MapPath("PMQA.mdb"
MyDb.dbStartup = "EditAdd"
MyDb.dbUnit=333449
MyDb.dbMode="Form"
MyDb.dbColor = "#FFFACD,Black,E6E6FA,Black"
MyDb.dbEditParams = "(;,)TableName=[Customer Info], BookMarkFlds=0, UpdateIcon=True, EditIconsLayout=Left"
MyDb.dbEditFlds = "OrderNo, QACheckStatus, Checkedby"
MyDb.dbEditAddTemplate = "AddForm2.htm"
MyDb.dbNavigationItem = "Top,Prev,Next,Bottom,Reload,Update,Add" ;
MyDb.dbSQL = "Select * from [Customer Info]"
MyDb.dbEditAddSQL = "INSERT INTO [Customer Info] (OrderNo, QACheckStatus, Checkedby ) VALUES ('#OrderNo', '#QACheckStatus#', '#Checkedby#'"
MyDb.aspDBEP
Response.Write ("<br><br><center><a href='http://scl4apweb05/rich_paino/SelectIDC.htm'>Return to the Main Screen</a>"
%>
DOESN'T WANT TO WORK WITH THE FORM CODE BELOW. I JUST GET A BLANK SCREEN. IF I COMMENT OUT THE "dbEditAddTemplate" line I GET THE STANDARD INPUT FORM JUST FINE. PLEASE HELP!
<body>
<body>
[[FormTag]]
<BR><BR>Order #:
<INPUT TYPE=TEXT NAME="OrderNo" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="QACheckStatus" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="Checkedby" VALUE=' '><br><br>
[[AddSubmitButton]]
[[ReturnButton]]<BR><BR>
[[/FormTag]]
</body>
-
Still can't get custom form to work!! Please help! (reply)
Frank,
I took the "#" out of the values segment of the Insert statement but it diddn't allow the template to work. I've been told that we need the gold version of ASP-db in order to use templates.
------------
Frank Kwong at 5/25/01 6:56:08 PM
get rid of the "#" and see what happens.
FK
------------
Rich Paino at 5/25/01 10:58:26 AM
THIS SHORT BIT OF CODE:
<%
Set MyDb = Server.CreateObject("ASPDB.EP"
MyDb.dbmdb=Server.MapPath("PMQA.mdb"
MyDb.dbStartup = "EditAdd"
MyDb.dbUnit=333449
MyDb.dbMode="Form"
MyDb.dbColor = "#FFFACD,Black,E6E6FA,Black"
MyDb.dbEditParams = "(;,)TableName=[Customer Info], BookMarkFlds=0, UpdateIcon=True, EditIconsLayout=Left"
MyDb.dbEditFlds = "OrderNo, QACheckStatus, Checkedby"
MyDb.dbEditAddTemplate = "AddForm2.htm"
MyDb.dbNavigationItem = "Top,Prev,Next,Bottom,Reload,Update,Add" ;
MyDb.dbSQL = "Select * from [Customer Info]"
MyDb.dbEditAddSQL = "INSERT INTO [Customer Info] (OrderNo, QACheckStatus, Checkedby ) VALUES ('#OrderNo', '#QACheckStatus#', '#Checkedby#'"
MyDb.aspDBEP
Response.Write ("<br><br><center><a href='http://scl4apweb05/rich_paino/SelectIDC.htm'>Return to the Main Screen</a>"
%>
DOESN'T WANT TO WORK WITH THE FORM CODE BELOW. I JUST GET A BLANK SCREEN. IF I COMMENT OUT THE "dbEditAddTemplate" line I GET THE STANDARD INPUT FORM JUST FINE. PLEASE HELP!
<body>
<body>
[[FormTag]]
<BR><BR>Order #:
<INPUT TYPE=TEXT NAME="OrderNo" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="QACheckStatus" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="Checkedby" VALUE=' '><br><br>
[[AddSubmitButton]]
[[ReturnButton]]<BR><BR>
[[/FormTag]]
</body>
-
Still can't get custom form to work!! Please help! (reply)
Yes, that's it.....
------------
at 5/29/01 10:30:23 AM
Frank,
I took the "#" out of the values segment of the Insert statement but it diddn't allow the template to work. I've been told that we need the gold version of ASP-db in order to use templates.
------------
Frank Kwong at 5/25/01 6:56:08 PM
get rid of the "#" and see what happens.
FK
------------
Rich Paino at 5/25/01 10:58:26 AM
THIS SHORT BIT OF CODE:
<%
Set MyDb = Server.CreateObject("ASPDB.EP"
MyDb.dbmdb=Server.MapPath("PMQA.mdb"
MyDb.dbStartup = "EditAdd"
MyDb.dbUnit=333449
MyDb.dbMode="Form"
MyDb.dbColor = "#FFFACD,Black,E6E6FA,Black"
MyDb.dbEditParams = "(;,)TableName=[Customer Info], BookMarkFlds=0, UpdateIcon=True, EditIconsLayout=Left"
MyDb.dbEditFlds = "OrderNo, QACheckStatus, Checkedby"
MyDb.dbEditAddTemplate = "AddForm2.htm"
MyDb.dbNavigationItem = "Top,Prev,Next,Bottom,Reload,Update,Add" ;
MyDb.dbSQL = "Select * from [Customer Info]"
MyDb.dbEditAddSQL = "INSERT INTO [Customer Info] (OrderNo, QACheckStatus, Checkedby ) VALUES ('#OrderNo', '#QACheckStatus#', '#Checkedby#'"
MyDb.aspDBEP
Response.Write ("<br><br><center><a href='http://scl4apweb05/rich_paino/SelectIDC.htm'>Return to the Main Screen</a>"
%>
DOESN'T WANT TO WORK WITH THE FORM CODE BELOW. I JUST GET A BLANK SCREEN. IF I COMMENT OUT THE "dbEditAddTemplate" line I GET THE STANDARD INPUT FORM JUST FINE. PLEASE HELP!
<body>
<body>
[[FormTag]]
<BR><BR>Order #:
<INPUT TYPE=TEXT NAME="OrderNo" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="QACheckStatus" VALUE=' '><br><br>
<INPUT TYPE=TEXT NAME="Checkedby" VALUE=' '><br><br>
[[AddSubmitButton]]
[[ReturnButton]]<BR><BR>
[[/FormTag]]
</body>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|