Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
combobox table error
Leo Swee Zhong 
   
3 years ago
Dim GetFillName, GetAmount
    GetFillName = DLookup("FillName", "Cash_Table_T", "TableID = " & SelectionCombo) 'get from table = CasherTxt
    
    MsgBox Me.CasherTxt 'okey show number
    MsgBox Me.GetFillName 'error , want to show the me.cashertxt amount
Leo Swee Zhong OP  @Reply  
   
3 years ago

Leo Swee Zhong OP  @Reply  
   
3 years ago
izzit prosible to let GetFillName point to my CasherTxt in form . and get amount from the form. the amount is a dsum amount from another table.
Kevin Robertson  @Reply  
          
3 years ago
You are getting the error because GetFillName is the name of a variable.
Remove the Me.

MsgBox GetFillName
Leo Swee Zhong OP  @Reply  
   
3 years ago
MsgBox GetFillName = CasherTxt
i try to get value in CasherTxt = a number (exp: 123)
Leo Swee Zhong OP  @Reply  
   
3 years ago
Dim GetTableName, GetAmount, temp
    GetTableName = DLookup("TableName", "Cash_Table_T", "TableID = " & SelectionCombo) 'CasherTxt
    
    temp = Nz(DSum("[Amount]", GetTableName, "InputDate>=#" & [DateFrom] & "# AND InputDate<=#" & [DateUntil] + 1 & "#"), 0)
    MsgBox temp

if is dsum in vba. yes i get the vable from table.
i keep think for few day izzit we can making try to pull the value from GetFillName
if really not posible please let me know
Adam Schwanz  @Reply  
           
3 years ago
You can't msgbox with an = sign.

Honestly your setup here is hard to read. What are you trying to do?

If you are trying to set a value with a dlookup it should be something like this
CasherTxt=DLookup("YourFieldName", "YourTableName", "YourID=" & YourField)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/6/2026 5:12:53 AM. PLT: 1s