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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

As part of a helpdesk system I want 1

Status
Not open for further replies.

gyli84

MIS
Aug 6, 2001
67
GB
As part of a helpdesk system I want users to be able to log calls. I have a helpdesk staff switchboard and as part of it I want a button that when clicked will direct the user to a NEW RECORD in a form called "Calls". I think this might have something to do with the DataEntry property in VB. I tried creating a command button using a wizard and then adding DataEntry = True but it didn't work. Does anyone know how to code such a button or what to add to a wizard button code or to specify as the criteria for an OpenForm macro which will do this?

Also, does anyone know how I can get data in a textbox to be dynamic and saved (ie. if you open a form and enter a value in it it will remain there when it is closed) without setting it as the control source or default value of the textbox (then if you update it from the form view the value isn't saved) or linking it to a value in a table? I have a procedure that looks at the value in that textbox and if another value is greater it changes the colour of other controls etc. The value in the textbox I am talking about must be updatable and can't have a default value.

Thanks!
 
I'll try and help you with part one of your inquiry. The code for going to a new record in a form is...

DoCmd.GoToRecord acActiveDataObject, , acNewRec

If you want to go to a new record as soon as the form is opened, then put this in the form's On Load event.

B-)

I hope I am understanding you correctly.

ljprodev@yahoo.com
ProDev, MS Access Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top