The code below shows how to get a value from an Oracle database sequence. You would typically do this in order to set a field value to a number that was unique database-wide.
The code assumes the Editor is in use, to determine the workspace of the sequence. Alternatively, the workspace could be derived from a feature class or table.
How to use:
Paste the macro into VBA.
Modify the code to point to the desired sequence and run the macro.