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!

Default Value in Table based on two fields

Status
Not open for further replies.

kaiana

Programmer
Sep 6, 2002
85
AU
I am trying to set a default value in a table based on two other fields in the table.

This table gets its records via an append query. It has a primary key "SupportNoteID" and I have a field ("SupportNoteNumber") that I want to fill with the default value of [SupportNoteID](primarykey of table) &[ServiceCallNumber](appended with record). I tried putting =[SupportNoteID]& [ServiceCallNumber]as the default value in the table but this gave me an error saying it did not recognise the field.
 
How about appending your ServiceCallNumber first then immediately run an Update query to update SupportNoteNumber to [SupportNoteID]& [ServiceCallNumber] Ann
 
Ann,

Thanks for the idea, I had already tried that but couldn't get it working, my SQL is a little rusty. If this is the best option I will keep trying and maybe paste my code to see if I can get any suggestions on where I am going wrong.

Tanya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top