If I want to run a sql query from a dropdown list that says a number, in this case a employee id, and I want the result to show in a textbox. How do I implement it?
I have the the sql query (Is a SUM query so itr only return one answer) ready but I dont know how to return the value to show up...
Ohh, I mean the importing image dialog that appears on the screen when an JGP is loading. How do I remove it, I can think that i must be some code.
- Tom
In C++ you can store values in an array like:
str[3] = hello;
Can I do the same thing in Access? I want to store a customer number and later generate a report.
- Tom
Hello all, How do I create a query at runtime and open a form with the result. Example the SQL statement "SELECT Name FROM Persons" open a form frmPersons and show all the names. (The textfield that contain the name can be static in the form).
- Tom
Thanks for you help, now I got the IIF to work:
Private Sub Report_Open(Cancel As Integer)
Dim test
test = IIf(checkbox, "match", "no match")
MsgBox test
End Sub
(returns match if checked)
But now a second problem arise. I can´t give the textfield...
Access doesn´t like the "=" in the begining of the string. And if I remove it Access generates a error like the one above (with the 'First...)
- Tom
I get a error message like this.
"syntaxerror in queryexpression 'First([IIF(([Forms]]![F_Order]![[payment]),[[sum]/3),"4000")])'"
What means with "First" and all these "[" and "]", excause me for my lack of experience with access but I´m...
I have a subform that should be printed in each page, with a header and a footer. You could say that the result should be three pages instead of one. That is three pages that are the same.
Does it clearify the problem, thanks for helping!!
- Tom
Hello all, please help me with this one. Whats wrong with this IIF.
(Form!F_Order.payment is a checkbox, [sum] is av value from database)
=IIF((Form!F_Order.payment),([sum]/3),4000)
This is placed in the controlsource of a textfield.
- Tom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.