![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello,
I'm pulling info over from another database into a field. This normally works, but for this one, I'm using a SUM command and something is not working. I think I just have a bit of syntax that is off. I think it's getting hung up in the select statement, or below that were I try to copy the value. Can anybody help? ------------------------------------------------------------------------ Set oRS = Application.CreateObject("ADODB.Recordset") oRS.Open "Select Sum(FI_BETR_NETTO) FROM BW_Auftr_Kopf WHERE ID = '" & Trim(Item.UserProperties("CustomerNum").Value) & "'", _ oDBConn, adOpenKeyset If Not oRS.BOF and Not oRS.EOF Then Item.UserProperties("PendingAlfakOrders").Value = oRS("Sum(FI_BETR_NETTO)") Else MsgBox "No Database record found for this Customer ID value.6", vbExclamation End If oRS.Close Set oRS = Nothing --------------------------- Thanks, Joel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Query about stationary | Andrea | Outlook - General Queries | 3 | January 24th 07 05:29 PM |
Query | Capt K Ripendran | Outlook Express | 2 | December 12th 06 05:22 PM |
Query | Capt K Ripendran | Outlook Express | 7 | November 15th 06 11:43 PM |
a query | Marion Dempsey | Outlook Express | 2 | April 30th 06 10:37 PM |
Running query from Access Form commmand using VBA code | Berny | Outlook and VBA | 4 | January 16th 06 02:12 PM |