Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jun 22nd, 2005, 4:46 PM   #1
hosamuk
Newbie
 
Join Date: Jun 2005
Posts: 1
Rep Power: 0 hosamuk is on a distinguished road
Visual Basic Help

Hi everyone i have a problem with microsoft access, where i am trying to write a program for currency exchange i.e. USD to EURO etc... i have written a piece of code in VB but every time i run the access application form and i change the currency from GBP to USD and then enter the amount in pounds in Price_Each text box i get an error message. The code is bellow:

Private Sub Price_Each_BeforeUpdate(Cancel As Integer)
If Form_Purchase.ComboCurrency <> "GBP" Then
price = Price_Each.Text * Form_Purchase.Rate
End If
Price_Each.Text = price
End Sub


The error message i get is:
"The macro or the function set to the BeforeUpdate or ValidationRule property for this field is preventing Cost Control System from saving the data in the field"

can anyone help me in solving this problem

i'll be looking forward for your replies..

thanks in advance

kinds regard

sam

Last edited by hosamuk; Jun 22nd, 2005 at 4:50 PM.
hosamuk is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC