Jump to content
Augusto Almeida

PHC - Usar dados do registo atual numa expressão Transact-SQL

Recommended Posts

Augusto Almeida

Bom dia!

Estou a criar uma grelha no ecrã de Stocks & serviços para calcular as margens dos vários preços de cada registo.

Quando crio a expressão Transact-SQL devolve todos os registos da tabela ST.

É possível usar a ref do registo atual em visualização?

Qualquer coisa do género...

SELECT epv1,epv2 FROM st WHERE ref = #ref#

Alguém pode ajudar?

Share this post


Link to post
Share on other sites
pc.cesar

com a expressão em TSQL 

SELECT epv1,epv2 FROM st WHERE ref = ?ref

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.