F
FPSC
I use MSAccess 2002.
I have a table with the following columns:
Part Description Price Form Button (Memo type)
In the Form Button Memo I have the following code:
<form action="https://www.website.com/cgi-bin/webscr" target="website" method="post">
<input type="hidden" name="bn" value="something">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="one e-mail address" >
<input type="hidden" name="item_name" value="Description">
<input type="hidden" name="item_number" value="Part">
<input type="hidden" name="amount" value="Price">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="image_url" value="http:///www.website2.com/images/Logo.jpg">
<input type="hidden" name="return" value="http://www.website2.com/page1.htm">
<input type="hidden" name="cancel_return" value="http://www.website2l.com/page2.htm">
I use this table to show items on my website.
The Memo column works perfectly, as a button that will direct the user to a form page with the information included in that code. (Part, Description and Price)
But... when I update the price, description and/or part number on any item, I have to update manually the memo code also on each item.
What I want to do is create a query that will retrieve the Part, Description and Price from the table and an expression that will put in another column the code above but will take the Part, Description and Price values from the columns on the table.
That way I update only Part, Description and Price and the code will be generated automatically.
Something like this:
Expr1: <form action="https://www.website.com/cgi-bin/webscr" target="website" method="post">
<input type="hidden" name="bn" value="something">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="one e-mail address" >
<input type="hidden" name="item_name" value=" [MyDatabase]![Description] ">
<input type="hidden" name="item_number" value=" [MyDatabase]![Part] ">
<input type="hidden" name="amount" value=" [MyDatabase]![Price] ">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="image_url" value="http:///www.website2.com/images/Logo.jpg">
<input type="hidden" name="return" value="http://www.website2.com/page1.htm">
<input type="hidden" name="cancel_return" value="http://www.website2l.com/page2.htm">
I tried this same expression but the syntax is not valid.
The message is:
The expression you entered contains invalid syntax.
You may have entered a comma without a preceding value or identifier.
If it is possible to do this, what else should I put in the expression to make it valid?
Any help will be very appreciated.
Thanks.
I have a table with the following columns:
Part Description Price Form Button (Memo type)
In the Form Button Memo I have the following code:
<form action="https://www.website.com/cgi-bin/webscr" target="website" method="post">
<input type="hidden" name="bn" value="something">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="one e-mail address" >
<input type="hidden" name="item_name" value="Description">
<input type="hidden" name="item_number" value="Part">
<input type="hidden" name="amount" value="Price">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="image_url" value="http:///www.website2.com/images/Logo.jpg">
<input type="hidden" name="return" value="http://www.website2.com/page1.htm">
<input type="hidden" name="cancel_return" value="http://www.website2l.com/page2.htm">
I use this table to show items on my website.
The Memo column works perfectly, as a button that will direct the user to a form page with the information included in that code. (Part, Description and Price)
But... when I update the price, description and/or part number on any item, I have to update manually the memo code also on each item.
What I want to do is create a query that will retrieve the Part, Description and Price from the table and an expression that will put in another column the code above but will take the Part, Description and Price values from the columns on the table.
That way I update only Part, Description and Price and the code will be generated automatically.
Something like this:
Expr1: <form action="https://www.website.com/cgi-bin/webscr" target="website" method="post">
<input type="hidden" name="bn" value="something">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="one e-mail address" >
<input type="hidden" name="item_name" value=" [MyDatabase]![Description] ">
<input type="hidden" name="item_number" value=" [MyDatabase]![Part] ">
<input type="hidden" name="amount" value=" [MyDatabase]![Price] ">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="undefined_quantity" value="0">
<input type="hidden" name="image_url" value="http:///www.website2.com/images/Logo.jpg">
<input type="hidden" name="return" value="http://www.website2.com/page1.htm">
<input type="hidden" name="cancel_return" value="http://www.website2l.com/page2.htm">
I tried this same expression but the syntax is not valid.
The message is:
The expression you entered contains invalid syntax.
You may have entered a comma without a preceding value or identifier.
If it is possible to do this, what else should I put in the expression to make it valid?
Any help will be very appreciated.
Thanks.