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

Add Record

Status
Not open for further replies.

pollenman

Technical User
Dec 13, 2000
68
0
0
GB
Hi all,

I have created a button on my customers form to add an invoice, how do i keep focus against the chosen customer?

Regards :)
 
How are ya pollenman . . . .

Try:
Code:
[blue]Me.DataEntry = True[/blue]
I take it you've at least disabled the navigation button [blue]Add New[/blue], if not, whats the point?

Calvin.gif
See Ya! . . . . . .
 
pollenman . . . . .

I should have asked questions first So . . . . .

Is this a [blue]single form[/blue] or [blue]form with subform[/blue]?

Calvin.gif
See Ya! . . . . . .
 
Morning The Ace man

Main - Customer
Sup form - Site
 
pollenman . . . . .

Forget the previous code. In your button add the following
Code:
[blue]DoCmd.RunCommand [purple]acCmdRecordsGoToNew[/purple][/blue]

Calvin.gif
See Ya! . . . . . .
 
Getting there TheAceMan1 where do i put it in my button?

Thanks for your patience

Terry :)
 
Just so there is no confusion.

Customer "Joe Bloggs" with customerID 5 (Autonumber)

all I want to do is press the command button ande it brings up an empty invoice for Joe Bloggs.

What is happening at the moment is that i click the button and it brings up the invoice for the first CustomerID 1

I hope this helps

Terry :)
 
pollenman . . . . .

Forgive me, I'm not making the greatest sense out of this.

You have a mainform [blue]Customer[/blue] with a subForm [blue]Site[/blue]. Are invoices on the main or subform?


Calvin.gif
See Ya! . . . . . .
 
we will get there!!!

Yes Customer is main and site for that customer as a subform.

Terry :)
 
TheAceMan said:
[blue]You have a mainform Customer with a subForm Site. [purple]Are invoices on the main or subform?[/purple][/blue]


Calvin.gif
See Ya! . . . . . .
 
Customer is main form and i will be calling the invoice from the customer.

Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top