accessAccountCodeExists() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Related Methods

Function

  • Used to determine if the account code already exists within the client’s database

Syntax

  • Boolean = AeXMLBridge.accessAccountCodeExists(AccountCode);

Parameters

  • String - Account Code

Return Value

  • Returns a Boolean value which is set to true if the supplied account code exists within the client’s database

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
string acctCode = "TestCode";                                 
// pass in your own value here

try
{
bool acctExists = ws.accessAccountCodeExists(acctCode);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
Dim acctCode As String = "TestCode"                          
' pass in your own value here

Try
Dim acctExists As Boolean = ws.accessAccountCodeExists(acctCode)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • This method can be used prior to adding a new account to ensure an account code is not already in use

Possible Errors

  • None

addAccessAccount
addAccessAccountWorkgroupAccessRightByAccountCode
editAccessAccount
getAccessAccounts
getAccessAccountViaAccountCode
getAccessAccountViaUniqueID
getAccessAccountWorkgroupAccessRightsByAccountCode
getCurrentAccessAccount
getEmptyAccessAccount
loadAccessAccountActivitysInRange
removeAccessAccount
removeAccessAccountAllWorkgroupAccessRightsByAccountCode

Back to Top