If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Chit Chat > tell me..

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-02, 13:29
sinhuei sinhuei is offline
Junior Member
 
Join Date: Sep 2002
Posts: 11
Question tell me..

i hav a difficulty which in my form ,there is a label name discount(lblDiscount).it can only b view by the staff, and the staff are unable to change the detail. it means that, discount is control by my database. the thing is, the lblDiscount shows nothing when i run my form.it's blank. but when i save my form, the discount field in the database is updated with the default value i set. how can i make lblDiscount to show it's value based on database?
Reply With Quote
  #2 (permalink)  
Old 10-02-02, 13:39
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Are you populating other database information on the same form as the discount ? If so, then just put that field in your query and lblDiscount = rs(x). How are you displaying the value for the lblDiscount now ? What is default value ?
Reply With Quote
  #3 (permalink)  
Old 10-03-02, 03:17
sinhuei sinhuei is offline
Junior Member
 
Join Date: Sep 2002
Posts: 11
the default value is 0.02
Reply With Quote
  #4 (permalink)  
Old 10-03-02, 14:14
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Define the label's caption to show .02. If there exists a value in the database for that record then overwrite using rs(fieldnumber) from your query, otherwise it will show .02.

Let me know if this answers your question. Which database are you using ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On