Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate account filed with VBA

Status
Not open for further replies.

wbrennan49

Technical User
Jun 3, 2005
1
US
I am using VBA and Modifier to capture a GL Account code in a new fields I setup with Modifier in the detail grid on the PO form. On User Change I click on the expansion button for the Item Detail Window, set focus to the Inventory Account filed and set the value to my new fields value. Trouble is, possibly because of the built in dashes in that field which require an interactive user to tab thru the field, I am only getting partial data into the field. Any hints appreciated.

Bill
 
The following is from the VBA Developers Guide provided with Great Plains as a printable manual in pdf format.

FocusSeg method

Description The FocusSeg method moves the focus to a segment in a composite field.

Great Plains account number fields are composite fields.

Syntax field.FocusSeg (index), [setvalue]

Parameters • field – A composite window field object.
• index – An integer specifying the segment you’re moving the focus to.
• setvalue– The value you can set for the segment gaining focus.

David Musgrave [MSFT]
Senior Development Consultant
Escalation Engineer
MBS Support - Asia Pacific

Microsoft Business Solutions

Any views contained within are my personal views and
not necessarily Microsoft Business Solutions policy.
This posting is provided "AS IS" with no warranties,
and confers no rights.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top