thanks
the reason a label is containing the information because when i select a product then click get product, it will get all product information then i have a button add ot basket, why do another query to get the product information when its in a label? =]
"Damon Heron" wrote:
[Quoted Text] > I have a problem with a textbox having a caption. Is txtProductPrice a > label? Anyway, > how about: > productPrice=CCur(txtProductPrice.Caption) > > Damon > > "Rick Brandt" <rickbrandt2[ at ]hotmail.com> wrote in message > news:S5T_k.8935$x%.1227[ at ]nlpi070.nbdc.sbc.com... > > On Sun, 07 Dec 2008 07:19:01 -0800, h3llz wrote: > > > >> productPrice = Val(txtProductPrice.Caption) > >> > >> productPrice is dimmed as integer. > >> txtProductPrice.Caption is £25 and i want to get 25 out of it. Help > >> please :( > > > > productPrice = CInt(Mid(txtProductPrice.Caption,2)) > > > > > > -- > > Rick Brandt, Microsoft Access MVP > > Email (as appropriate) to... > > RBrandt at Hunter dot com > > >
|