I am calling the function as the control source in a form, but i am not getting "test", i tried from a query also, but no luck.
I tried changing the Null's to variables that can be tested instead of having an empty value, i cant think of anything else...
Thanks
I have an argument in the maketable query that i am using to run the function.
I have deletd as you have pointed out, but maybe i am not placing calling the function correctly to the query?
I have been running the code in diffrent ways...
Thanks.
Public Function getComment()
Dim strType As...
Ok, I tried the code a few diffrent ways and i am still recieving the #name# error.
Ive adjusted the code to below, can anybody see a mistake in it.
Option Compare Database
Public Function getComment()
Dim strType As String
Dim strStock As String
Dim strInventory As Integer
Dim intLinePt As...
When i run the code i dont get any errors, but when the query is ran the entire comments section is #error#.
That what i thought when i wrote that it seemed to work, because i didnt recieve an error in vba.
Do you have a a code example to go off?
All i am trying to do is make one query from an import that inserts the above comments into a column of its own if the criteria meets.
Does anyone know how to make these 3 IIf statements into one?
I am trying to put it all in one column and i keep recieving errors when i make input all 3 statments into 1 and change the query to a make table query.
Thanks in advance...
SELECT p.*, IIf([POType]="PO" And [NonStock]="N","NS"...
The extra table is what i was trying avoid because i just wanted to use the db to import, filter, and mail an excel file.
I adjusted the code from above but it kept counting the comments that i need inserted as PO Types:
SELECT
IIf([POType] = "DO"
AND [NonStock] = "N","NS Direct"...
Hey thanks...
I made another table, andI tried a few diffrent combinations,but i keep getting error clauses and from errors.
From your SQL I refomated the two table as follows:
table1(po review) is 5 colums
POType NonStock InventoryPos LinePt Availability
PO N...
Ive tried everything i can think of, but i just would rather one sql statement rather than code, ive tried coding it but i kept getting errors.
The db dosent contain tables just the headings because i have a automarco that imports a table from a shared network and loads the query and outputs as...
I've created a db with 1 update table and 1 maketable query.
I ve created an iif statement but its not long enough for the info i need. The statement works, but where do i fit the rest in?
SELECT IIf([PO Type]="BO","Blkt Order",IIf([PO Type]="RM","PORM",IIf([PO Type]="WT","WHS...
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.